The appeals court found the policy seeking to expel currently serving personnel was likely unconstitutional.