U.S. legislation to curb climate change emissions with a cap-and-trade mechanism died in the U.S. Senate. But the market-friendly approach has found support in California, and abroad — most recently in China, the world’s largest greenhouse gas emitter, and biggest investor in clean energy.