Mayors back global warming pact