UN meeting on global warming moves towards deal