Obama says world "met the moment" in global warming pact