The Senate easily passed legislation to reform how Congress handles sexual harassment claims as lawmakers scramble to clear the overhaul of their rules before the end of the year.

The chamber approved the legislation by unanimous consent on Thursday, less than a day after senators announced they had an agreement after months of stalemated negotiations between key House and Senate lawmakers.

"The Senate and the House reached a landmark agreement to reform the process by which Capitol Hill itself handles claims of sexual harassment, discrimination, and other workplace violations," Senate Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellFEC flags McConnell campaign over suspected accounting errors Poll: 59 percent think president elected in November should name next Supreme Court justice Mark Kelly: Arizona Senate race winner should be sworn in 'promptly' MORE (R-Ky.) said Thursday before the bill's passage.

ADVERTISEMENT

He added that it "ensures that Members of Congress will be held responsible for their own misconduct — not taxpayers."

Sen. Amy Klobuchar (D-Minn.), the top Democrat on the Senate Rules Committee, added that the bill "fundamentally changes the way sexual harassment cases are handled."

"The process we have will now protect victims of harassment instead of protecting politics. ... This was something that we had to get done by the end of the year, getting rid of that cooling-off period, getting rid of a lot of the byzantine ways these cases were handled," Klobuchar added from the Senate floor, shortly after the bill was passed.

The House still needs to pass the bill before wrapping up its work for the year as soon as next week.

A final agreement on the bill to reform the Congressional Accountability Act of 1995 comes as the "Me Too" movement has rocked Capitol Hill recently.

Sen. Al Franken Alan (Al) Stuart FrankenGOP Senate candidate says Trump, Republicans will surprise in Minnesota Peterson faces fight of his career in deep-red Minnesota district Getting tight — the psychology of cancel culture MORE (D-Minn.) stepped down last year after several women came forward to accuse him of sexual misconduct and a growing number of his female colleagues called for him to step aside.

ADVERTISEMENT

Several lawmakers — including former Reps. Patrick Meehan (R-Pa.) and Blake Farenthold Randolph (Blake) Blake FarentholdThe biggest political upsets of the decade Members spar over sexual harassment training deadline Female Dems see double standard in Klobuchar accusations MORE (R-Texas) — also used official funds to settle harassment claims.

The compromise would make lawmakers personally liable for settlements related to harassment and retaliation they personally commit, even if they leave office.

The provision was a key sticking point between the House and Senate. The House's bill would have made members personally liable for both harassment and discrimination settlements.

"It really was always about harassment and individual activity. And discrimination is much broader and much harder — certainly, people are still protected if they're discriminated against but they're protected like they would be working for any other employer," Blunt told reporters earlier Wednesday, asked why discrimination wasn't included.

It would also eliminate a 30-day counseling period, a 30-day mediation phase and a 30-day “cooling off” period required for victims of sexual harassment under the Congressional Accountability Act.