The governments agreed to set limits on greenhouse gas emissions to prevent temperatures from rising above two degrees Celsius over preindustrial levels, after which scientists fear the consequences of climate change could become catastrophic.