Two Democratic senators had called on the chamber to take a rare step, called unanimous consent, to approve the legislation, a day after the Republican-controlled House of Representatives passed the measure in a 419-4 vote.
The bill now goes to US President Donald Trump.
The White House did not directly answer when asked whether the president intends to sign the bill but noted that he had signed earlier Epstein legislation and the Justice Department had released millions of files to Congress.
The department has criticised the new legislation as deeply flawed.
"President Trump has done more for Epstein's victims than anyone before him," White House spokeswoman Lauren Bis said in a statement.
It is the second time in just over a year that the House has voted to release Epstein files over the objections of Republican leadership.
It is also the second time the Senate cleared Epstein legislation without a single objection.
Congress last November required the release of all unclassified Epstein records.
But Republican representative Thomas Massie of Kentucky, a champion of the new legislation, says the Justice Department unlawfully withheld 3 million files and heavily redacted many it released.
The department says it has complied fully and released all records required by law.
Massie, who lost his primary in May to a Trump-backed candidate, pushed for the bipartisan bill.
The new bill would allow state attorneys general, Epstein victims and members of Congress to challenge DoJ decisions to withhold records Massie says violate the law that Trump himself signed late last year.
It would also give Epstein victims the right to obtain full, unredacted records concerning themselves or the harm they suffered, including certain FBI reports.
A 2019 lawsuit filed by accusers said that Epstein began sexual abuse of girls and young women as early as 1985.
Epstein died in 2019 in a Manhattan jail cell while awaiting trial on sex trafficking charges.
New York City's medical examiner called the death a suicide.
with Reuters