The defense secretary’s office has ordered that some books be removed from circulation in its library, and the academy has ended the use of affirmative action in admissions.