The landmark ruling curbs federal power to limit greenhouse gas emissions in a setback for President Biden.