There is no dispute that Trump is Commander in Chief.
Wrong! That is precisely what is being disputed. And it's pretty safe to say that the federal judiciary is divided on the point.