UNITED NEWS INTERNATIONAL (UNI) — The U.S. House of Representatives voted to ban sexual relationships between lawmakers and their employees, a move which comes after a wave of sexual misconduct scandals against Congressmen in response to the #MeToo campaign.

The bill, pushed by Republican Rep. Barbara Comstock, was passed on Feb. 6 and took immediate effect.

Now, sexual relationships between House members and employees they supervise are prohibited.

The legislation changes the system for reporting sexual harassment and establishes a new office to advocate for employee’s making sexual harassment claims.

Lawmakers are also prohibited from using taxpayer funds in workplace settlements.

According to the Washington Post, at least eight members of Congress have resigned or announced plans to retire in the past four months after a wave of harassment and misconduct scandals.