Countries have agreed on a deal to inject at least 300 billion dollars a year into the fight against climate change, aimed at helping poor nations cope with the ravages of global warming at United Nations climate talks.