The United States has exited JETP, a massive climate deal designed to help South Africa, Indonesia and other developing nations transition to clean energy.