WASHINGTON — The White House has decided that President Obama will not offer formal condolences — at least for now — to Pakistan for the deaths of two dozen soldiers in NATO airstrikes last week, overruling State Department officials who argued for such a show of remorse to help salvage America’s relationship with Pakistan, administration officials said.

On Monday, Cameron Munter, the United States ambassador to Pakistan, told a group of White House officials that a formal video statement from Mr. Obama was needed to help prevent the rapidly deteriorating relations between Islamabad and Washington from cratering, administration officials said. The ambassador, speaking by videoconference from Islamabad, said that anger in Pakistan had reached a fever pitch, and that the United States needed to move to defuse it as quickly as possible, the officials recounted.

Defense Department officials balked. While they did not deny some American culpability in the episode, they said expressions of remorse offered by senior department officials and Secretary of State Hillary Rodham Clinton were enough, at least until the completion of a United States military investigation establishing what went wrong.

Some administration aides also worried that if Mr. Obama were to overrule the military and apologize to Pakistan, such a step could become fodder for his Republican opponents in the presidential campaign, according to several officials who declined to be named because they were not authorized to speak publicly.