A federal judge on Monday paused the execution of Nidal Hasan, the former Army psychiatrist who killed 13 people at Fort Hood in 2009. The execution by firing squad had been set for Thursday.

U.S. District Judge Tony Mattivi announced the ruling after a public hearing earlier in the day, Stars and Stripes reported. Hasan now has until June 1 to submit a habeas corpus petition, in which he plans to contest whether his detention and execution are lawful.

The court’s reasoning

Without a stay, the judge wrote, the Army would execute Hasan before any court could consider his claims. “We are a nation of laws. Those laws protect everyone who comes before a court,” he wrote. He added that nothing in the order diminishes what Hasan did or its toll on victims and their families.

Appeal filed

The government has moved to overturn the ruling, Attorney General Todd Blanche said, noting that his department had already filed an appeal. Hasan, the department argued, offered no justification for delaying a habeas filing and cannot show he is likely to succeed.

A military court convicted Hasan in 2013 of murder and attempted murder and sentenced him to death. President Trump approved the firing-squad execution in early October, according to Al Jazeera, which reported that it would be the first such U.S. military punishment since 1961.