A federal judge has delayed the execution of Nidal Hasan, a former Army psychiatrist who killed 13 people and injured more than 30 in a mass shooting at Fort Hood in 2009.