Shifting microbial communities can enhance tree tolerance to changing climates