More countries pledged at the event to wean themselves off fossil fuels, although pressure from countries dependent on oil and gas exports made discussions on the green energy transition fraught.