Andrew Jackson once pointed out to the Supreme Court that the President is CIC of the military. That Trumped the court system, so to speak.
(As he was stealing Cherokee territory.)