“Can’t bring charges against him if the military changed/recinded his orders.”
Sure they can. They can claim that the Major violated X, Y, or Z under the UCMJ and railroad him out of the military.
Claiming and proving are two different things. There is such a thing as "due process", even in the military.