The Pentagon's move from the Trump administration is the latest volley in a controversy over the service of transgender troops.