CNN —  

A motion has been filed on behalf of Secretary of Homeland Security Jeh Johnson requesting he be excused from an Aug. 19 court hearing in Texas where a judge has ordered his appearance over his department’s violations of a court-ordered injunction over the issuing of employment authorization grants to immigrants.

On July 7, Judge Andrew Hanen in the Southern District of Texas ruled that the defendants – Johnson and others – had to attend an Aug. 19 hearing in the case and “be prepared to show why he or she should not be held in contempt of Court.”

This was six weeks after the government had promised to rectify the more than 2,000 violations that were admittedly made in cases of immigrants applying for deferred action on their immigration status.

The case stems from a December 2014 civil complaint naming Johnson, as well as other top officials from DHS and U.S. Customs and Border Patrol, numerous states charged that President Barack Obama’s executive action on immigration is a “unilateral suspension of the nation’s immigration laws,” which the suit calls “unlawful.”

Among the chief complaints in the case was the issuing of 2,612 Employment Authorization Documents for three year terms instead of two years, which the government self-reported to the court as an erroneous mistake, following a Order of Temporary Injunction from implementing any changes or expansions to the DACA program in February.

According to court documents, both parties were making progress towards a resolution and requested Judge Hanen give more time for reconciliation, but warned that he would not “consider a direct violation of an injunction a side issue,” if the matter had not been settled.

In response, the government invalidated all three-year grants and EAD cards and reissued them for two years and reflected the changes in the SAVE database, which states use to verify benefits and driver’s licenses. The government is now waiting to see if Hanen will be satisfied by their efforts to remedy the injunction violations and keep Secretary Johnson out of court at the next scheduled hearing for Aug. 19.

Obama administration faces uphill court battle over immigration

CORRECTION: An earlier version of this story misstated whether Johnson’s court appearance had been canceled. The motion to cancel the hearing has not been ruled on by the court and Johnson is still ordered by the court to appear unless the judge rules otherwise.