A federal judge plans to rule Monday on whether to halt the execution of former Army Maj. Nidal Hasan, who will be shot this week for killing 13 people during a 2009 attack on Fort Hood, Texas, in what would be the first U.S. military execution in decades. Hasan was in court in Kansas on Monday asking for a stay so he could challenge the constitutionality of the execution. U.S. District Judge Tony Mattivi said at the end of the hearing that he planned to read the briefs filed Monday and rule by the end of the day. Hasan’s execution at Fort Hood, which was approved by President Donald Trump, is scheduled for Thursday. It would be the first execution carried out by the military in the United States since 1961 and the first by firing squad since World War II. Hasan, who admitted opening fire on fellow American soldiers and was paralyzed from the waist down after being shot in the back during the attack, asked a federal court last week to give him time to show that his death sentence handed down by a military court violated his constitutional rights. Hasan, a former Army psychiatrist, is acting as his own attorney and is assisted by attorneys from the American Civil Liberties Union Capital Punishment Project. The Justice Department called Hasan’s request baseless and argued that it would harm the victims’ families, “many of whom will soon travel to Texas to observe the execution,” U.S. Attorney Ryan Kriegshauser told the court in a document filed Friday. Soldiers hold a candlelight vigil the day after the Fort Hood shooting in 2009.LM Otero/AP FileHasan shot at soldiers preparing to deploy. Hasan is currently detained at the military prison at Fort Leavenworth, Kansas. About a month before his scheduled trip to Afghanistan in 2009, Hasan opened fire in a building full of soldiers preparing to deploy or returning to the U.S. More than 30 people were wounded along with the 13 killed. At his 2013 trial, Hasan wanted to argue that the shooting was legally justifiable because he was defending the Afghan Taliban from an illegal attack by the US military and wanted to prevent US soldiers from killing Muslims. But a judge rejected that argument and Hasan, who has acted as his own attorney for much of his case, remained largely silent during the three-week trial. Although the military called nearly 90 witnesses, Hasan concluded his case without calling a single person to testify in his defense and did not make any closing arguments. The move convinced his court-appointed standby attorneys that Hasan’s only goal was to obtain a death sentence. Prosecutors said Hasan’s claim of self-defense is absurd because the soldiers he shot were not directly threatening anyone. Several were shot in the back while trying to flee. “By Hasan’s own twisted logic, any person could unilaterally decide that a war was illegal and engage in mass murderous shootings against US military personnel with impunity, even before such personnel arrived on the battlefield,” prosecutors wrote in court papers. Defense Secretary Pete Hegseth initially announced that Hasan’s execution would be livestreamed, sparking protests before Trump canceled that plan. The president and Secretary of Defense failed to follow military regulations in part by notifying him of Thursday’s execution three days after signing the order and without a chaplain or attorney being present when they told him. Lawyers helping Hasan are also asking the judge to ensure that he is kept in a prison that will provide him with the ongoing and meaningful medical care he needs. anticipating crowds similar to those that flocked to the community during Hasan’s trial. Schools from kindergarten to the Texas A&M University campus in central Texas will close. That includes eight schools on the Fort Hood base, as well as others that serve current and former military families. The Killeen Independent School District, which has nearly 40,000 students, said in announcing the decision that the Fort Hood attack had a lasting impact on the community. Some survivors said they cannot attend. Army officials have declined to answer questions about Thursday’s execution procedure, plans for witnesses or other preparations. Military officials said Army regulations strictly limit the people who can witness an execution to those direct victims and survivors of the crimes of which the defendant was convicted; in this case, 13 counts of murder and 32 counts of attempted murder. Some survivors who were told they couldn’t come said the military should take a more inclusive view of victims to include people who were traumatized and survived the attack without suffering gunshot wounds.