The role of microbial mutualists in hosts' resilience to environmental variation across space and time