After delays, theatrics and deal-making, climate talks ended with an agreement to “take note” of a pact shaped by five nations.