Populism is drawing momentum from environmentalism in the U.S. and Europe, threatening the world’s effort to rein in climate change.