Countries representing one-third of the world’s economy have agreed to begin planning a phase-out of fossil fuels