The summit had appeared close to calling for a phase-out of fossil fuels but made last-minute changes.