In a sometimes-fiery hearing, a judge said the Trump administration’s assertion that troops’ pronouns are harming military ...