> Constitutional basis
The ultimate answer is the SC.
They will have two choices: trigger limited war with good guys controlling govt hardware, or trigger a much worse war with bad guys controlling it.
And who would those good guys be. I do not think the military would automatically take our side.