Climatic-niche evolution follows similar rules in plants and animals