Pentagon spokesman says it will issue new press credentials but remove media offices after ruling in New York Times suit.