On Wednesday, government ministers representing nearly 200 countries agreed on a deal calling for a transition away from fossil fuels.