A deal is salvaged at the UN COP29 summit in Azerbaijan as poorer nations are promised record funding for climate action.