Soil biodiversity enhances the persistence of legumes under climate change