As the Trump administration yanks the U.S. out of the Paris climate change agreement, claiming it will hurt the American economy, Beijing is investing hundreds of billions of dollars and creating millions of jobs in clean power. China has built vast solar and wind farms, helping fuel the growth of major industries that sell their products around the world.