The US Senate passed legislation Wednesday that would let victims of Jeffrey Epstein, state attorneys general and members of Congress sue the Justice Department to obtain withheld files on the convicted sex offender.

The bill cleared the Senate by unanimous consent after the House approved it 419-4 the previous day, with only four Republicans voting no. It creates a legal pathway to challenge any unlawful withholding of records and grants victims access to unredacted documents naming them. The measure now goes to President Donald Trump, whose administration has criticized the bill as flawed.

Republican Rep. Thomas Massie and Democratic Sen. Jeff Merkley, the lead sponsors, argued the Justice Department has not fully complied with last year’s Epstein Files Transparency Act, which required release of millions of pages. A Reuters-Ipsos poll from February showed 69 percent of Americans believe powerful figures are rarely held accountable in such cases.