The United States has reached a deal to lift steel and aluminum tariffs on Canada and Mexico, removing one key obstacle to passing updates to the North American Free Trade Agreement.

In a joint statement Friday, the Canadian and American governments said the U.S. will scrap the metals duties within two days. Canada will remove tariffs levied on American goods in retaliation for the steel and aluminum duties. The countries will also:

Drop all pending litigation in the World Trade Organization related to the tariffs

Set up measures to "prevent the importation of aluminum or steel that is unfairly subsidized and/or sold at dumped prices" and "prevent the transshipment of aluminum and steel made outside of Canada or the United States to the other country"

Make an "agreed-upon process for monitoring aluminum and steel trade between them"

In a separate statement, the Mexican government also said it would remove retaliatory tariffs it put on the U.S. and cease pending litigation. Mexico also said it would set up measures to stop unfair trade practices in the aluminum and steel markets and to monitor trade of the metals in North America.

Trump referenced the tariff removal during remarks Friday to the National Association of Realtors, saying, "I'm pleased to announce we've just reached an agreement with Canada and Mexico to sell product without the imposition of major tariffs."

The Canadian and Mexican governments, along with top U.S. lawmakers, have pushed the Trump administration to remove the tariffs before the countries approve the United States Mexico Canada Agreement. President Donald Trump and Canadian Prime Minister Justin Trudeau spoke earlier Friday about the duties on metals and the tariffs Canada slapped on U.S. goods in retaliation, according to a spokesman for Trudeau.