UCMJ is pretty clear re: the free speech angle and all points in that direction. UCMJ != the Constitution and Bill of Rights. Always blows my mind when people complain about this aspect.
The last I heard, there was a US destroyer undeployable because the Captain refused to get vaccinated and (so far) has successfully sued to prevent his being transferred to another position.