In the agreement, he acknowledged that he sent the initial message to the foreign country, which has not been identified, and then communicated with the undercover F.B.I. officer. But, in the agreement, Mr. Toebbe said his wife “committed multiple overt acts in furtherance of the conspiracy.”
As part of the deal, Mr. Toebbe will help the government recover the cryptocurrency that undercover F.B.I. agents paid him, as well as the classified information he said he had but that he never turned over.
Mr. Toebbe had faced the possibility of life in prison, but under terms of the deal will instead face about 12 to 17 and a half years in prison.
The case received broad attention, raising questions of how a couple in a suburban home in Annapolis, Md., could become ensnared in an international spy plot.
A key question is whether Mr. Toebbe’s plea deal will result in any leniency for his wife, a former teacher at a private school in Annapolis. While Mr. Toebbe had done little to contest his pretrial detention or the charges against him, Ms. Toebbe’s lawyers had mounted a defense that she knew nothing of the plot to steal secrets. While she had gone to the dead drops, set up by undercover F.B.I. officers, she did not know of the scheme, her lawyers said.