Most major economies are investing in ever-cheaper solar and wind power. The United States risks further ceding a global market to China.