The U.S. just enacted its biggest-ever climate law with massive investments in clean energy that will help significantly slash greenhouse gas emissions.

But euphoria over the achievement is dimmed by a sobering reality: Talks between Beijing and Washington on the issue have collapsed — and now diplomats for the world’s two biggest climate polluters are sparring on Twitter, underscoring the tensions threatening global efforts to curb rising temperatures.

The online spat began when Nicholas Burns, the U.S. ambassador to China, took a victory lap on Twitter.