WASHINGTON — A former FBI lawyer intends to plead guilty after he was charged with falsifying a document as part of a deal with prosecutors conducting their own criminal inquiry of the Russia investigation, according to his lawyer and court documents made public Friday.

The lawyer, Kevin Clinesmith, 38, who was assigned to the Russia investigation, plans to admit that he altered an email from the CIA that investigators relied on to seek renewed court permission in 2017 for a secret wiretap on former Trump campaign adviser Carter Page, who had at times provided information to the spy agency. Clinesmith’s lawyer said he made a mistake while trying to clarify facts for a colleague.

President Donald Trump immediately promoted the plea agreement as proof that the Russia investigation was illegitimate and politically motivated, opening a White House news conference by calling Clinesmith “corrupt” and the deal “just the beginning.” Trump has long been blunt about viewing the investigation by the prosecutor examining the earlier inquiry, John Durham, as political payback whose fruits he would like to see revealed in the weeks before the election.

Attorney General William Barr has portrayed Durham’s work as rectifying what he sees as injustices by officials who sought in 2016 to understand links between the Trump campaign and Russia’s covert operation to interfere in the election.

Clinesmith had written texts expressing opposition to Trump. But prosecutors did not reveal any evidence in charging documents that showed Clinesmith’s actions were part of any broader conspiracy to undermine Trump. And the Justice Department’s independent inspector general, Michael Horowitz, has found that law enforcement officials had sufficient reason to open the Russia investigation, known inside the FBI as Crossfire Hurricane, and found no evidence that they acted with political bias.

As part of their efforts to dissuade prosecutors from charging Clinesmith, his lawyers argued that his motives were benign, and other evidence indicated that he had not tried to hide the CIA email from his colleagues.

“Kevin deeply regrets having altered the email,” Clinesmith’s lawyer, Justin Shur, said in a statement. “It was never his intent to mislead the court or his colleagues, as he believed the information he relayed was accurate. But Kevin understands what he did was wrong and accepts responsibility.”

Clinesmith, who resigned over the matter last year, was expected to be charged in federal court in Washington with a single felony count of making a false statement. A spokesman for Durham declined to comment.

Barr had previewed the agreement on Fox News’ “Hannity” on Thursday night, announcing that a development would occur in the investigation Friday. “It’s not an earth-shattering development, but it is an indication that things are moving along at the proper pace, as dictated by the facts in this investigation,” he said.

It is highly unusual for law enforcement officials to publicly discuss ongoing investigations, but Barr has long made clear his distaste for the Russia investigation and his view that Durham would remedy any issues with it.

Although the sprawling Russia investigation that was eventually run by a special counsel, Robert Mueller, uncovered the Kremlin’s complex operation to subvert the election and the Trump campaign’s expectation that it would benefit from foreign involvement, Republicans have seized on a narrow aspect of the inquiry — the investigation into Page — in a long-running quest to undermine it.

In a report made public last year, Horowitz revealed the applications were riddled with serious errors and omissions. Among other things, he had learned of a troubling series of events in which Page’s association with the CIA was not accurately conveyed to the Justice Department and ultimately kept from the judges who approved the surveillance warrants.

Page had for years provided information to the CIA about his contacts with Russian officials. In CIA jargon, he was known as an operational contact — someone who agrees to be debriefed by agency personnel but cannot be assigned to collect information.

That relationship might have given law enforcement officials reason to be less suspicious of him. And the FBI was told about it: A CIA lawyer provided a list of documents in the August 2016 email at the heart of the case against Clinesmith that explained Page’s relationship with the agency.

But an FBI case agent who learned about Page’s ties to the CIA played them down while preparing the first wiretap application, according to the inspector general’s report. At the time, Clinesmith was not involved in determining whether Page was a CIA source, people familiar with the case said.

But later in 2017, a supervisory FBI agent handling the third and final renewal application asked Clinesmith for a definitive answer on whether Page had been an agency source, according to Horowitz’s report.

Clinesmith incorrectly said Page was “never a source” and sent the CIA’s information to the supervisor. He altered the original email to say Page had not been a source — a material change to a document used in a federal investigation.

The agent relied on the altered email to submit the application seeking further court permission to wiretap Page, the inspector general wrote. By changing the email and then forwarding it, Clinesmith misrepresented the original content of the document, which prosecutors said was a crime.

Clinesmith argued he did not change the document in an attempt to cover up the FBI’s mistake. His lawyers argued he had made the change in good faith because he did not think Page had been an actual source for the CIA.

Clinesmith’s lawyers also argued their client did not try to hide the CIA email from other law enforcement officials as they sought the final renewal of the Page wiretap. Clinesmith had provided the unchanged CIA email to Crossfire Hurricane agents and the Justice Department lawyer drafting the original wiretap application.

Clinesmith had also urged investigators to send any information about an informant’s meeting in October 2016 with Page, including any exculpatory statements, to the Justice Department lawyer drafting the wiretap application. Clinesmith said this was “probably the most important” information to provide to the lawyer drafting the wiretap application.