By Brad Plumer

New York Times News Service

KATOWICE, Poland — Diplomats from nearly 200 countries reached a deal Saturday to keep the Paris climate agreement alive by adopting a detailed set of rules to implement the pact.

The deal, struck after an all-night bargaining session, will ultimately require every country in the world to follow a uniform set of standards for measuring their planet-warming emissions and tracking their climate policies. It calls on countries to step up their plans to cut emissions before another round of talks in 2020.

It calls on richer countries to be clearer about the aid they intend to offer to help poorer nations install more clean energy.

The United States agreed to the deal despite President Donald Trump’s vow to abandon the Paris Agreement. Diplomats and climate change activists said they hoped that fact would make it easier for the administration to change its mind and stay in the Paris Agreement, or for a future president to embrace the accord again. The United States cannot formally withdraw from the agreement until late 2020.

Observers said U.S. negotiators worked constructively behind the scenes with China on transparency rules. The two countries had long been at odds because China had insisted on different reporting rules for developing countries, while the United States favored consistent emissions-­accounting rules and wanted all countries to be subject to the same outside scrutiny.

22027085