Soon after President Trump announced that the United States would back out of the Paris climate accord, several large companies based in the United States that had supported the international pact said they were disappointed by the decision and would continue their environmental efforts.

While Mr. Trump said the decision to exit the deal was made to protect American jobs — a contention that environmental groups have disputed — some large companies had urged the president to stay in the accord.

Twenty-five companies, including Apple, Facebook, Google and Microsoft, bought full-page ads in The New York Times, The Wall Street Journal and The New York Post last month to argue their case. Some of those companies, and others in the technology, energy and engineering sectors, reacted quickly on Thursday.

Tesla

Elon Musk, Tesla’s founder, said he would leave an advisory council for Mr. Trump.

General Electric

Jeff Immelt, G.E.’s chairman and chief executive, said in a Twitter message:

Microsoft

Brad Smith, Microsoft’s president, said in a statement that the company was disappointed in the decision.

We believe that continued U.S. participation benefits U.S. businesses and the economy in important and multiple ways. A global framework strengthens competitiveness for American businesses. It creates new markets for innovative clean technologies, from green power to smart grids to cloud-enabled solutions. And by strengthening global action over time, the Agreement reduces future climate damage to people and organizations around the world.

We remain steadfastly committed to the sustainability, carbon and energy goals that we have set as a company and to the Paris Agreement’s ultimate success. Our experience shows us that these investments and innovations are good for our planet, our company, our customers and the economy.

Amazon

The company released a statement in a series of tweets:

Amazon continues to support the Paris climate agreement and action on climate change. We believe that robust clean energy and climate policies can support American competitiveness, innovation, and job growth. We remain committed to putting our scale and inventive culture to work in ways that are good for the environment and our customers.

Shell

Salesforce

The company said in a statement:

“We are disappointed by the Administration’s decision to withdraw from the Paris Agreement, as climate change continues to threaten our planet and global economies. As powerful platforms for change, businesses must step up to protect the planet for future generations. Salesforce is committed to reducing the impact of climate change by embracing sustainability across every aspect of our business — including reaching net-zero greenhouse gas emissions, delivering a carbon neutral cloud and achieving 100% renewable energy.”