Functional diversification enabled grassy biomes to fill global climate space