United States formally exits global climate pact