WASHINGTON — House and Senate negotiators reached a deal Wednesday to overhaul sexual harassment reporting in Congress and to end taxpayer-funded secret settlements to victims.

Instead, members of Congress would be required to pay out of their own pockets settlements stemming from their bad behavior and those awards would be made public.

“This bipartisan, bicameral agreement sends a clear message that harassment in any form will not be tolerated by the Congress,” said Sen. Roy Blunt (R-Mo.).

The legislation, announced Wednesday by Blunt and Sen. Amy Klobuchar (D-Minn.), marks a compromise between the House and Senate, which passed different pieces of legislation earlier this year in response to the #MeToo movement that exposed seedy congressmen and a broken reporting system on Capitol Hill.

The House-passed legislation went further than the compromise bill by requiring lawmakers to pay not just for harassment settlements, but also for discrimination claims.

Records show that nearly $300,000 in taxpayer dollars was spent between 2003 and 2007 to settle 13 claims of sexual harassment or sex discrimination against members of Congress or their offices.

The compromise legislation, which is expected to pass both the House and Senate in the coming days, would eliminate the mandatory counseling and cooling-off periods that made victims wait months before moving forward with a complaint.

Employees would have a dedicated advocate in filing harassment claims. And Congress would regularly survey employees to confidentially measure incidents of sexual harassment and discrimination.

The #MeToo movement had nine causalities in Congress, including Reps. John Conyers (D-Mich.), Trent Franks (R-Ariz.), Tim Murphy (R-Pa.) and Sen. Al Franken (D-Minn.).