WASHINGTON — John Demers, the head of the Justice Department’s National Security Division, is expected to step down at the end of next week, according to a person familiar with the matter, a departure that was arranged months ago but now comes amid widespread backlash over investigations into leaks of classified information that began under the Trump administration.
Mr. Demers was the longest-serving Senate-confirmed official from the Trump administration to remain at the Justice Department during the Biden presidency.
John Carlin, the second in command in the deputy attorney general’s office, had asked Mr. Demers in April to remain at the department, according to the person. Lisa O. Monaco had just been confirmed to serve as the deputy attorney general, and the three officials had a long history of working together on sensitive national security cases.
Mr. Demers asked to leave by summer, and the two men eventually agreed that he would stay on through June 25, the person said.
But Mr. Demers’s departure also comes as Democrats and First Amendment advocates have attacked the Justice Department following revelations that prosecutors supervised by Mr. Demers seized the records of reporters from The New York Times, The Washington Post and CNN and of top House Democrats while investigating leaks of classified information. The department’s inspector general announced an investigation on Friday into the matter.
While it is common for the Justice Department to try to find out who shared classified information with the media, it is highly unusual to secretly gather records from the press and lawmakers. The prosecutors also prevented the lawyers and executives of The Times and CNN from disclosing that records had been taken, even to their newsroom leaders, another highly aggressive step.
Such moves require signoff by the attorney general. But Mr. Demers and his top counterintelligence deputies in the division would typically be briefed and updated on those efforts.
Much of the spotlight on national security cases during Mr. Demers’ three-year run focused instead on the special counsel, Robert S. Mueller, III, who ran the Russia investigation, the Justice Department’s highest profile and politically fraught national security matter.
But Mr. Demers’s ability to skirt controversy ended in recent weeks as the revelations about reporters’ record seizures and the gag orders came to light.
Justice Department officials say that all appropriate approvals were given for those orders, meaning that the attorney general at the time, not Mr. Demers, signed off.
Former Attorney General William P. Barr approved the decision to seize records from CNN and The Washington Post in 2020, people with knowledge of the leak investigations have said. But it is unclear who approved the request for email records from Google that belonged to Times reporters. The request was filed with a court days after Mr. Barr left, though he could have signed off on it before leaving.
A Justice Department spokesman declined last week to identify whether Mr. Barr or his successor, former acting Attorney General Jeffrey A. Rosen, approved that move.
Leak investigators in 2018 also obtained data from Microsoft and Apple that belonged to Democrats on the House Intelligence Committee, including Representatives Adam Schiff and Eric Swalwell, both of California. Mr. Schiff is now the panel’s chairman.
In those instances, the Justice Department also told the technology companies not to inform customers about the subpoenas until recently.
The data was collected and the gag orders were imposed on the tech companies weeks before Mr. Demers was confirmed to lead the National Security Division.
Still, some Democrats demanded answers about what he knew about the leak cases.
Senator Chuck Schumer of New York, the majority leader, called on Mr. Demers on Sunday to testify before Congress.
When Mr. Demers became the head of the National Security Division on Feb. 22, 2018, he was praised by both Democrats and Republicans, who noted that he had worked under administrations of both parties.
The confirmation is his third stint at the department. From 2006, when the National Security Division was created, to 2009, Mr. Demers was part of its leadership team. He had previously worked in the department’s Office of Legal Counsel, essentially the government’s lead legal adviser, and in the office of the deputy attorney general.
He graduated from Harvard Law School, where he and Mr. Carlin were friends and classmates.
As the head of the National Security Division, he will likely best be known for his work to combat the threat of Chinese intellectual property theft and espionage.