Dozens of journalists who cover the U.S. Defense Department vacated their offices in the Pentagon and returned their credentials on Wednesday as new restrictions on press access took effect.