The Justice Department apologized on Tuesday for misstating the House general counsel’s position to a judge. The department admitted it made a "categorically false" statement regarding constitutional protections during the search of Representative Ilhan Omar’s home. Officials called the error an inadvertent misunderstanding after the lawyer challenged their claims publicly.

The Justice Department apologized for misstating the House general counsel's position, calling it an inadvertent misinterpretation.

The top lawyer for the House accused the Justice Department on Tuesday of making a "categorically false" statement to a judge, mischaracterizing his view on constitutional protections for lawmakers regarding the search of the home of Representative Ilhan Omar of Minnesota.

Hours later, the Trump administration acknowledged its error in a court filing, adding that the department "apologizes for this inadvertent misunderstanding."

The embarrassment for the Justice Department centered on the highly unusual search of Ms. Omar's apartment in Washington, weeks before her re-election, as part of a sprawling inquiry into her family's immigration history that prosecutors say dates to matters as far as back as 1980.

At issue is whether the general counsel for the House, Matthew Berry, sided with the Trump administration's narrow view of the Constitution's speech or debate clause, which grants immunity to lawmakers for official actions and protects their legislative work. By the administration's interpretation, the clause does not limit searches of lawmakers' homes.

The exchange came to the fore after the chief judge of the Federal District Court in Washington, James E. Boasberg, late Monday ordered unsealed materials related to the search warrant.

The filings showed that the Justice Department told the magistrate judge who ultimately approved the warrant, Matthew Sharbaugh, that ahead of the search, it had asked the House general counsel to be involved. Mr. Berry, a Republican, declined. According to the department's account to the judge, he agreed with the administration's view: Protections for lawmakers under the speech or debate clause "do not extend to a member's private residence," as opposed to an office.