He's only still in command due to a judicial ruling temporarily preventing the navy from taking action. He had already been relieved of command but the judge reinstated him. It's doubly sticky because it was a civilian court. Generally speaking the military can issue a lot of orders that are not allowable under civilian law. Like mandatory vaccinations.