Nearly 200 nations pledge to slow global warming