Countries meeting in Rwanda have agreed a “monumental” deal to phase out gases used in fridges that are worsening global warming.