How the COP28 deal got done