I'm still trying to figure out it will jump from regular federal court to military court.
Mil court is normally only for crimes committed by members of the military, persons captured on a battlefield, or if the civilian court system in non-operational (ie: at the end of the Civil War). I don't think Martial Law would pass muster with the SC as justification.
The only scenario that makes sense is if sooo many federal judges get indicted that the whole system effectively collapses and the public loses faith in it.