" This is not a perfect agreement , and no country would get everything that it wants , " Obama said in an advance copy of his speech , admitting that the bid to forge a robust climate change deal was hanging in the balance .