The court acted in the dispute over a policy that presumptively disqualifies transgender people from military service and could lead to the expulsion of experienced, decorated officers.