President Donald Trump is merging his national security and trade goals in a blur of tactical improvisation that risks alienating U.S. allies and opening American businesses to costly retaliation, according to several Republican lawmakers, business executives and former U.S. officials.

The president last week initiated a Commerce Department investigation that could lead to tariffs of up to 25 percent on foreign cars, arguing that a flood of imports had eroded the nationโ€™s manufacturing base and threatened the nationโ€™s security.

The potential auto tariffs โ€” which would hit Mexico, Canada, Japan and Germany hardest โ€” are the latest sign of the presidentโ€™s fluid approach to national and economic security that has left allies and adversaries baffled over U.S. intentions, according to foreign diplomats.

The proposal has irritated close allies like Germany and the United Kingdom while inviting demands for similar protection from an ever-expanding list of U.S. industries.

The president holds an expansive view of national security, describing imported products like steel or passenger sedans as worrisome threats to the United States. Yet he also engages in freewheeling bargaining that treats vital strategic considerations as the equivalent of commercial factors, leaving negotiating partners unsure of his true priorities.

โ€œPast presidents generally tried to keep national security issues in one lane and trade policy in another lane,โ€ said Peter Harrell, a former official in the State Departmentโ€™s bureau of economic and business affairs. โ€œTrump is just more willing to make trade-offs between the two.โ€

The auto tariffs are the second time in less than three months that the president has cited national security as a justification for protectionism. Yet his recent call for leniency for ZTE, a Chinese telecom company crippled by its punishment for violating U.S. sanctions on Iran and North Korea, showed that he would bend on a genuine security threat, analysts said.

Chinese leaders had demanded an easing of ZTEโ€™s punishment in return for progress in trade talks that are scheduled to continue June 2 in Beijing with the arrival of Commerce Secretary Wilbur Ross.

On Friday, Trump announced on Twitter that he was allowing ZTE to โ€œreopenโ€ in return for management changes, payment of a $1.3 billion fine and a promise to buy American parts. The reversal on U.S. policy toward a company that had equipped two avowed U.S. enemies prompted bipartisan opposition in Congress.

โ€œThe striking feature of Trumpโ€™s use of national security is the inconsistent and haphazard use of the term, so as to render it meaningless,โ€ said George Magnus, an associate at Oxford Universityโ€™s China Center. โ€œWhat I see is Trump using national security as a blanket to obfuscate simple trade protectionism.โ€

Given Trumpโ€™s dealmaker persona, many analysts saw the proposed auto tariffs as a bargaining chip in talks aimed at a new North American trade deal. Higher import levies on foreign cars could push Mexico to accept U.S. proposals to require more auto content from American factories, they said.

But the experience from an earlier round of tariffs on steel and aluminum has dulled the threat. The metals tariffs were also billed as an essential measure to cope with a national security threat, only for Trump days later to grant waivers affecting almost two-thirds of imported steel.

The autos proposal reflected Trumpโ€™s โ€œAmerica Firstโ€ philosophy, which cheers heartland voters with promises to reclaim lost manufacturing jobs and represents a sharp break from the partyโ€™s Reaganite orthodoxy on trade.

Administration officials believe a flood of foreign auto imports has crushed the U.S. manufacturing sector, leaving the U.S. unable to produce material needed for national defense.

โ€œNational security is broadly defined to include the economy, to include the impact on employment, to include a very big variety of things,โ€ Ross told CNBC on Thursday. โ€œEconomic security is military security. And without economic security, you canโ€™t have military security.โ€

Ross said the low 2.5 percent tariff on automobiles entering the United States is a primary reason so many foreign cars are imported.

Trumpโ€™s attempt to stretch a 1962 trade law โ€” which permits higher tariffs when imports โ€œthreaten to impair the national securityโ€ โ€” to cover routine sales of foreign-made cars drew strong opposition from within his own party.

โ€œRaising taxes on Americans who choose to buy imported cars or trucks is a bad idea. Doing it under the false pretense of national security โ€” Section 232 โ€” is an even worse idea, as it invites retaliation and weakens our credibility on actual trade disputes,โ€ said Sen. Patrick J. Toomey, R-Pa.

Sen. Bob Corker of Tennessee, the Republican chairman of the Senate Foreign Relations Committee, called the proposal โ€œdangerous and destabilizingโ€ and said it should be withdrawn.

Republican allies in the business community also objected. โ€œThis isnโ€™t about national security,โ€ said Thomas Donohue, president of the U.S. Chamber of Commerce. โ€œThe administration has already signaled its true objective is to leverage this tariff threat in trade negotiations with Mexico, Canada, Japan, the European Union and South Korea.โ€

The opposition may have little practical effect, since Trump doesnโ€™t need congressional approval. The authority to impose tariffs in the name of national security without congressional interference has made these Section 232 reviews a favorite tool for the Trump administration.

Even if the tariffs are challenged in court or at the World Trade Organization, that process can take months or years, providing ample short-term leverage to seek unrelated concessions from trading partners like the European Union, Mexico, and Japan.

The autos proposal highlights two noteworthy aspects of Trumpโ€™s attempt to use national security concerns as a trade war weapon. He is threatening to hurt close U.S. allies as much, if not more so, as countries like China. The U.S. imports roughly 98 percent of its cars from the countries Donohue cited.

The aggressive approach to trade risks alienating potential partners the U.S. will need in confronting Iran or North Korea. โ€œIn the process of damaging our economy, theyโ€™re alienating all our allies,โ€ said Phil Levy, a former White House economist under George W. Bush.

Plus, if the U.S. uses national security as a rationale for protectionism, other countries are sure to follow suit. In 1975, Sweden cited a national security exemption under global trading rules to justify its imposition of limits on footwear imports, which it said posed โ€œa critical threatโ€ to defense planning.

The auto tariffs would mark a dramatic escalation in Trumpโ€™s war-against-all on trade. The U.S. last year imported $335 billion in automobiles and auto parts, 11 times the value of total steel imports, according to the Commerce Department.

โ€œThis widens the trade war tenfold. Itโ€™s a major mistake,โ€ said Rufus Yerxa, president of the National Foreign Trade Council, an association of multinational corporations.

Trumpโ€™s latest tariff bid would promote โ€œretaliation against American-made products that will undermine manufacturing and jeopardize the jobs of manufacturing workers in the United States,โ€ said Jay Timmons, chief executive of the National Association of Manufacturers.

โ€œWhile U.S. trading partners have been fairly measured in responding to the steel and aluminum tariffs, they will have no choice but to exhaust every option in opposing tariffs on autos,โ€ John Veroneau, a trade official in the George W. Bush administration, wrote in an email. โ€œAlso, unlike steel and aluminum tariffs which hit US consumers indirectly, tariffs on cars will be right there on the window sticker.โ€

From the outset of his presidency, Trumpโ€™s dealmaker mentality has been especially visible in his dealings with China. In April 2017, the president offered to go easy on China in trade talks in return for diplomatic help with North Korea, a striking contrast to his repeated campaign promises to put the needs of American workers first.

โ€œI explained to the President of China that a trade deal with the U.S. will be far better for them if they solve the North Korean problem!โ€ Trump tweeted.

Likewise, Trumpโ€™s decision to direct the Commerce Department to review its order banning ZTE from buying American parts for seven years, after violating the terms of its settlement of U.S. charges, sparked an uprising among fellow Republicans outraged at what they saw as cavalier treatment of a national security danger.

In 2017, ZTE pleaded guilty to charges related to illegally trading with Iran and North Korea and obstructing justice, was fined $1.2 billion and promised to punish several executives.

On Sunday, following Trumpโ€™s announcement that he was softening ZTEโ€™s penalty, Sen. Marco Rubio, R-Fla., predicted that Congress would pass by a veto-proof majority legislation prohibiting any Chinese telecom company from operating in the U.S.

โ€œItโ€™s not just ZTE. Itโ€™s Huawei, all of them depend on the U.S. semiconductors,โ€ Rubio said on โ€œFace the Nationโ€ on CBS. โ€œNone of these companies should be operating in this country. None of them.

Dan DiMicco, former chief executive of the steel company Nucor and a former trade adviser to Trump during the 2016 campaign, said the Section 232 automotive review is one of several that the White House is planning in the coming months. Others, he said, are likely to include imports of semiconductors and technology related to artificial intelligence.

โ€œThe overall strategy is not going to happen overnight,โ€ said DiMicco. โ€œItโ€™s being implemented. Thatโ€™s what you see. You see all these moving parts because we have that many moving parts to deal with.โ€