President Obama declared victory at home in his quest for an ambitious climate agreement, six years after a climate pact in Copenhagen left many disappointed.