Total SE exited the American Petroleum Institute, a lobbying group that counts major oil companies among its members, after deciding it wasn’t aligned with the organization on climate change.