U.S. was pulling out of the climate deal