President Trump is setting up a major confrontation over climate change that is likely to go all the way to the Supreme Court.