The Obama administration on Tuesday escalated a feud with the federal judge hearing a challenge to the president’s executive actions on immigration, accusing the judge of overstepping his authority by imposing sanctions on government lawyers for what he said were ethics violations.

In court papers, the Justice Department responded to an order on May 19 by Judge Andrew S. Hanen of Federal District Court in Brownsville, Tex., in which he ordered government lawyers practicing in the 26 states involved in the case to take ethics courses. He also barred some from appearing in his court.

In the scathing ruling, Judge Hanen ordered the department to provide the names of tens of thousands of immigrants who were granted protection from deportation for three years under the president’s programs, before the judge imposed an injunction in February 2015.

The Justice Department disputed the judge’s claim that its lawyers had intentionally lied to him and called his punishments grossly disproportionate, even if they had committed the missteps. The department said the measures ordered by the judge would cost the government as much as $8 million over five years and force the administration to reveal the identities of innocent immigrants who played no role in the dispute.