The search was part of a government effort to account for materials related to some of the most highly classified programs run by the United States, a person briefed on the matter said.