WASHINGTON — Tamping down talk of war, top Trump administration officials told Congress on Tuesday that recent actions by the U.S. deterred attacks on American forces. But some lawmakers remained skeptical of the White House approach in the Middle East.

After a day of closed-door briefings on Capitol Hill, Secretary of State Mike Pompeo and acting Defense Secretary Patrick Shanahan said their objective over recent days has been to deter Iran. Now they want to prevent further escalation, Shanahan said.

“We’re not about going to war,” Shanahan told reporters.

“Our biggest focus at this point is to prevent Iranian miscalculation,” said Shanahan, flanked by Pompeo, after back-to-back briefings for the House and Senate. “We do not want the situation to escalate.”

The officials arrived on Capitol Hill as questions mounted over President Donald Trump’s tough talk on Iran and sudden policy shifts in the region. Skeptical Democrats sought out a second opinion, holding their own briefing with former Obama administration officials, former CIA Director John Brennan and Wendy Sherman, an architect of the Iran nuclear deal.

The competing closed-door sessions Tuesday came after weeks of escalating tensions that raised alarms over a possible military confrontation with Iran.

Trump, veering between bombast and conciliation in his quest to contain Iran, threatened Monday to meet provocations by Iran with “great force,” but he also said he’s willing to negotiate.

The results of the meetings Tuesday were mixed, with views settling largely along partisan lines.

Sen. Mitt Romney, R-Utah, said the action taken by the Trump administration “is totally appropriate” and sends a message that “if you attack our people, there will be a response.”

Romney characterized it as defensive in nature and meant to deter Iran from “malign” actions.

Democratic Rep. Ruben Gallego, a veteran of the Iraq War, left the classified House briefing, saying: “What I heard in there makes it clear that this administration feels that they do not have to come back and talk to Congress in regards to any action they do in Iran.”

Democrats are concerned the Trump administration may try to rely on nearly 20-year-old war authorizations rather than seek fresh approval from Congress for any action.

Senate Minority Leader Chuck Schumer, D-N.Y., said he told Pompeo and the others their consultation with Congress has been “inadequate.”

Shananan said he and the others heard that message and vowed to better communicate with lawmakers and the public.

In recent weeks, the U.S. sent an aircraft carrier strike group, four bomber aircraft and other assets to the region, and is moving a Patriot missile battery to an undisclosed country in the area. The Trump administration has evacuated nonessential personnel from Iraq, amid unspecified threats the administration says are linked to Iran.

Shanahan said the recent U.S. actions in the region were based on “credible threats” to U.S. forces and interests in the Middle East.

“We have deterred attacks based on our repositioning of assets, deterred attacks against American forces,” he said.

Pompeo said he tried to put the Iran situation in the country’s 40-year history of “malign” actions.

Pompeo, a former congressman, has become somewhat of a polarizing figure on Capitol Hill, and some lawmakers left the meeting saying he was lecturing and arrogant.

Democratic Rep. Adam Smith of Washington, chairman of the Armed Services Committee, said he interjected at one point during the briefing: “We know Iran is bad, OK? What is the policy going forward? There wasn’t enough information on that.”

Smith said Pompeo was asked why it took so long to brief Congress. The congressman said the secretary’s answer was, “We were busy.” Smith said it was not an acceptable answer.

Earlier, Brennan told House Democrats that while Tehran wants to avoid conflict, the country’s leadership will not capitulate to Trump. Sherman warned that reckless behavior by the Trump administration in Iran is hurting U.S. credibility and undermining moderates in the country. Their comments were conveyed by a person in the room who was not authorized to discuss the private meeting by name.

Top Democrats say Trump escalated problems by abruptly withdrawing the U.S. from the Iran nuclear deal, a complex accord negotiated during the Obama administration to prevent Iran from nuclear weapons production.