This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

WASHINGTON (AP) — President Joe Biden’s nominee to head the National Archives was confirmed Wednesday by the Senate after a months-long partisan battle over the agency’s role in the investigation into sensitive documents seized at Donald Trump’s Florida home.

Colleen Shogan, a political scientist, was confirmed as archivist of the United States in a 52-45 vote, gaining some bipartisan support after a nearly yearlong delay.

With a long career spanning work at institutions such as the Congressional Research Service, the Library of Congress and the White House Historical Association, Shogan has sought to assure senators she will not bring a partisan mindset to the job.

Shogan also stressed to Congress that she has not been briefed on the details or directly involved in the ongoing criminal investigations into Trump’s handling of presidential records and more recently that of President Joe Biden and former Vice President Mike Pence.

But her nomination faced hostility from Senate Republicans, who have sought to portray her as a political actor for the left. During her confirmation hearing, they grilled Sogan about her past tweets and a recent whistleblower letter alleging that she created an “abusive” work environment at one of her former posts.

“We are living through the political weaponization of the National Archives, the political weaponization of the Department of Justice, the political weaponization of the FBI,” said Sen. Josh Hawley, R-Mo, during her first confirmation hearing.

The classified documents investigation, which began last summer with the FBI search of Trump’s Mar-a-Lago resort, has thrust the traditionally staid and low-profile National Archives into the public arena. It was the National Archives that set the probe in motion with a referral to the FBI after Trump returned 15 boxes of documents that contained dozens of records with classified markings.

Biden nominated Shogan just days before the FBI search after the last archivist, David Ferriero, announced his retirement last April. In explaining his decision to step away, Ferriero cited fears about the nation’s political trajectory after the Jan. 6, 2021, attack on the U.S. Capitol.

Shogan’s roots in official Washington run deep. She began her career as a congressional aide for former Sen. Joe Lieberman, then worked her way up to a position with the Congressional Research Service, a scholarly operation that churns out nonpartisan analysis for lawmakers and their staff. Shogan also worked for a time at the Library of Congress.

Until her confirmation, Shogan was an executive at the White House Historical Association, where she worked under both the Trump and Biden administrations.

As the archivist, she will now take the helm of an agency that — despite the current political tumult — mostly works as a custodian of American history. The agency works to preserve the nation’s records, including treasured documents like the Constitution and the Declaration of Independence and maintains a sprawling collection that spans 13 billion pages of text and 10 million maps, charts and drawings, as well as tens of millions of photographs, films and other records.

Beyond its work in Washington, the agency oversees 13 presidential libraries and 14 regional archives across the country. But despite the ever-growing volume of government documents since the Archives’ founding in 1934, the agency’s budget has remained stagnant over the years.

Despite majority Republican opposition, Shogan was able to gain the support of three GOP senators, including her friend, Sen. Shelley Moore Capito, R-W.Va., who introduced her during her first confirmation hearing. Capito has described Shogan as having “the knowledge, experience, energy and depth of dedication to serve in this role.”

Republican Sens. Lisa Murkowski and Susan Collins — notable centrists — also voted for Shogan.