The department’s inspector general said it would audit the release of millions of pages of files to determine whether the agency had followed the law.