The 6-3 decision could affect world efforts to combat climate change.