The funding will help poorer countries deal with the impacts of climate change, with rich countries leading the payments.