A federal appeals court has cleared the US military to proceed with the execution of Nidal Hasan, overturning a lower court stay.