And it finalises the most contentious elements of the Paris Agreement rulebook, six years after the landmark deal was done.
What it doesn’t do is meet calls for climate reparations, to the dismay of developing countries.
Addressing the plenary before the text was adopted, US climate envoy John Kerry said: “There is some discomfort.
We do so only because they are critical elements in this package that people in my country need as a lifeline for their future,” she said.
Before the plenary started on Saturday afternoon Kerry and veteran US climate lawyer Sue Biniaz roamed the meeting hall.
The carbon trading rules agreed in Glasgow, while stricter than some parties wanted, risk diluting ambition, critics warned.
Support our work today with a donation or by subscribing to our daily newsletter for exclusive extra content.