US Vice President JD Vance declined on Friday to say whether he would have authorized strikes on Iran to prevent it from developing a nuclear weapon, as President Donald Trump pressed him to say the attacks were necessary and that he would order them again.

At a White House press conference with Trump, Vance said the decision to attack Iran in February was Trump's, adding, “and my job is to support the president of the United States.” Asked whether the war was worth Republicans' steep congressional losses, Vance said preventing Iran from obtaining a nuclear weapon was necessary but did not explicitly endorse the operation.

“What I've said is the goal of keeping Iran from getting a nuclear weapon is absolutely what we need to be doing,” Vance said. “It's the biggest state sponsor of terrorism. If they had a nuclear weapon, they would use it as leverage, or, God forbid, they would attack and kill thousands, hundreds of thousands, potentially of innocent people.”

He added: “And I think the president is the one who makes the decision, and the president has said he would do it again. And my view is that my goal is and my job is to support the president of the United States.”

Vance's answer came after he blamed the war for Republicans' historic losses in the midterm elections and called for the United States to leave the conflict. In a social media post, he wrote: “The reason we lost is the war,” adding, “If you'd like to argue it was worth it, that losing the Senate for the next 6 years was worth it, then do so. Argue it was a worthwhile cost to pay.”

Trump said Friday he was not unhappy with Vance's conclusion but wanted him to acknowledge that the strikes were necessary and that he would make the same decision. “People that work for me, they have a right to their opinion,” Trump said. “But I say, I know the Iranians, and, frankly, they're crazy.”

Vance has long opposed the war and served as Washington's main emissary for peace talks. He brokered a provisional truce over the summer that quickly fell apart. In recent weeks, he sent personal correspondence to hardliners in Tehran to restart negotiations.

Trump called off the engagements shortly after Vance published his post-election assessment, telling him to focus on domestic policy. “We don’t need a deal with Iran,” Trump wrote on social media. “Those days have long since passed.”

Trump returned Thursday from a four-day diplomatic trip through Asia, which culminated in a trilateral meeting with Chinese President Xi Jinping and Russian President Vladimir Putin. Vance, who remained in Washington, praised the trip on social media, writing: “It's amazing what's possible when you give diplomacy a real chance.”