Washington (AFP) - Democrats on Sunday slammed Donald Trump's tactics of threatening punitive tariffs to extract concessions on immigration from Mexico, saying the US president was recklessly endangering ties to a major ally and trade partner.

"What the world is tired of, and what I am tired of, is a president who consistently goes to war, verbal war, with our allies," Senator Bernie Sanders, an independent who caucuses with Democrats, said on CNN's "State of the Union."

"We need a decent relationship with Mexico," added Sanders, who is a candidate for the Democratic presidential nomination in 2020. "We should not be confronting them every other day."

His comments came two days after the US and Mexico, following urgent talks in Washington, reached a deal to avert the five-percent tariffs Trump had threatened on all imports from Mexico, a move economists said would have had devastating impact in both countries.

The Mexican side, for its part, agreed to bolster security on its southern border and expand its policy of taking back Central American migrants as the US processes their asylum claims.

- 'Threats and tantrums' -

Trump and his Republican supporters hailed the deal as a major breakthrough, but the Democrats sharply criticized his frequent resort to tariff threats and said many of the Mexican concessions were made months ago.

House Speaker Nancy Pelosi issued a sharply worded statement Saturday saying Trump had "undermined America's preeminent leadership role in the world" by threatening tariffs against Mexico.

"Threats and temper tantrums are no way to negotiate foreign policy," she said.

But Kevin McAleenan, the acting secretary of Homeland Security, insisted that results were what mattered.

"People can disagree with the tactics (but) Mexico came to the table with real proposals," he said on "Fox News Sunday." "We have an agreement that, if they implement, will be effective."

- 'Brilliant' use of tariffs -

Beto O'Rourke, a former congressman from the border city of El Paso, Texas who is also pursuing the Democratic nomination, was among the critics challenging how much Trump had actually accomplished.

Story continues

"I think the president has completely overblown what he reports to have achieved," he said on ABC's "This Week." "These are agreements that Mexico had already made, in some cases months ago.

"They might have accelerated the timetable, but by and large the president achieved nothing except to jeopardize the most important trading relationship that the United States of America has."

Many lawmakers from border states like Texas -- even many Republicans -- had expressed grave reservations about the tariff threat, but Republicans, at least, welcomed the outcome.

"In general, Republicans understand that tariffs are attacks on American consumers and we don't want to see them in place long-term, nor do I believe President Trump does," Republican Senator Ron Johnson said on Fox.

That said, the Wisconsin lawmaker added, "I think he used them as leverage in this situation brilliantly."

Mexican President Andres Manuel Lopez Obrador, speaking Saturday in the border city of Tijuana, also credited the agreement, saying it meant "there will not be an economic or financial crisis in Mexico."

- Months-old concessions? -

One of the concessions touted by administration officials was Mexico's agreement to deploy its National Guard to slow the migrant flow northward.

But Mexico had pledged to do that in secret talks in March, according to officials from both countries quoted by the New York Times.

And the agreement to expand a program allowing asylum-seekers to remain in Mexico while their cases are being processed was reached in December, the officials said.

Trump lashed out at what he called "another false report in the failing New York Times" tweeting on Sunday that "We have been trying to get some of these Border Actions for a long time, as have other administrations, but were not able to get them, or get them in full, until our signed agreement with Mexico."

The Times issued a statement standing by its article. "We are confident in our reporting, and as with so many other occasions, our stories stand up over time and the president's denials of them do not," it said.

And insisting on his version, Trump added: "Importantly, some things not mentioned in yesterday's press release, one in particular, were agreed upon. That will be announced at the appropriate time."