Global emissions are at records, and the shift away from fossil fuels is slowing amid high costs and surging power demand.