Nutrient acquisition by symbiotic fungi governs Palaeozoic climate transition