The 5-to-4 decision was a strong rebuke to the Bush administration, which has maintained that it does not have the right to regulate carbon dioxide and other heat-trapping gases under the Clean Air Act, and that even if it did, it would not use the authority.