Nearly 200 nations near a deal to slow global warming