A ruling that paused former Army Maj. Nidal Hasan's execution just days before he was set to die for the 2009 Fort Hood attack could set off a yearslong court battle that may turn on comments made by President Donald Trump and members of his administration, some legal experts said Tuesday.

The halted execution had been scheduled for Thursday and would have been the U.S. military's first since 1961.

U.S. District Judge Tony Mattivi paused the execution to give Hasan time to challenge his punishment.