The 3,086-page bill states that the secretary of defense will ensure military academies do not permit a person “whose sex is ...