Federal Judge Anthony Mattivi in Kansas ordered a stay of execution for Nidal Malik Hasan, a former US Army psychiatrist who killed 13 people at Fort Hood in 2009.