G7 leaders agreed to raise their contributions to help poorer countries cut carbon emissions and cope with global warming