UN climate talks agree on $300B global funding package for poor nations