WASHINGTON — Rachel L. Brand, the No. 3 official at the Justice Department, plans to step down after nine months on the job as the country’s top law enforcement agency has been under attack by President Trump, according to two people briefed on her decision.
Ms. Brand’s profile had risen in part because she is next in the line of succession behind the deputy attorney general, Rod J. Rosenstein, who is overseeing the special counsel’s inquiry into Russian influence in the 2016 election. Mr. Trump, who has called the investigation a witch hunt, has considered firing Mr. Rosenstein.
Such a move could have put her in charge of the special counsel and, by extension, left her in the crosshairs of the president.
Ms. Brand, who became the associate attorney general in May, will become the global governance director at Walmart, the company’s top legal position, according to people briefed on her move. She has held politically appointed positions in the past three presidential administrations.
In her current job, she reports directly to Mr. Rosenstein and Jeff Sessions, the attorney general, who has recused himself from the Russia investigation.
Mr. Trump in recent weeks has escalated his criticism of the department for its handling of the inquiry and suggested that top law enforcement officials should face consequences for conduct he called “a disgrace.”
The release last week of a contentious Republican memo that accused the Justice Department and the F.B.I. of political bias raised new questions over whether Mr. Trump might seek to oust Mr. Rosenstein, who appointed the special counsel, Robert S. Mueller III.
Ms. Brand now oversees a wide swath of the Justice Department, including the civil division, the civil rights division and the antitrust division. She helped lead the department’s effort to extend a law that authorizes the National Security Agency’s warrantless surveillance program.
In an op-ed in The Washington Post last year, Ms. Brand argued that the law “has been valuable and effective in protecting the nation’s security” and that law enforcement officers would be “at risk” without it. Congress voted to extend that law, Section 702 of the FISA Amendments Act, last month.
Last week, Ms. Brand hosted a summit meeting at the Justice Department on human trafficking. At that event, Mr. Sessions thanked her for her “strong leadership as our third in command at the department.”
But Ms. Brand has also become embroiled in the feud between the president and the nation’s law enforcement agencies. Reports that Mr. Trump had tried to fire Mr. Mueller and had considered firing Mr. Rosenstein raised questions of who would replace Mr. Rosenstein.
Ms. Brand’s assistant, Currie Gunn, has also left the department. Ms. Gunn could not be reached for comment.