President Trump issued an executive order in January that targeted active-duty and prospective service members with gender dysphoria.