U.S. formally exits Paris pact aiming to curb climate change