The decision was split, allowing the Trump administration to continue barring transgender people from enlisting.