The Pentagon plans to announce the repeal of its ban on transgender service members July 1, a controversial decision that would end nearly a year of internal wrangling among the services on how to allow those troops to serve openly, according to Defense officials.