The service said the inspections stem from the Pentagon’s Barracks Task Force, which will develop an “investment plan” for troop housing.