AUSTIN, Texas – The Texas House gave final approval Tuesday to legislation that will impose a two-year felony on school administrators who do not report allegations of improper student-teacher relationships, and will task schools with crafting policies for online communications.

Senate Bill 7 is aimed at cracking down on an epidemic of educators caught sexually abusing students, including many who face allegations in one school district only to resign with a letter of recommendation that allows them to continue their misdeeds in another.

MORE NEWS: Know These Before Moving From Cyprus To The UK

The practice, known in the education world as passing the trash, would become a state jail felony with a fine of up to $10,000 for administrators who help to negotiate the deals. SB 7 was approved by a House vote of 146-0, and is now heading to Gov. Greg Abbot to become law, the Texas Tribune reports.

The legislation also strips pensions from teachers convicted of sexual abuse or improper relationships with students, and imposes fines of between $500 and $10,000 for school officials who do not file reports on inappropriate teacher behavior with the State Board for Educator Certification within specific time frames.

State Rep. Chris Turner, a Republican from Grand Prairie, questioned whether lawmakers should withhold pensions from innocent family members of teachers convicted of sex with students, and lawmakers amended the bill to allow a judge to decide on a case-by-case basis.

Last year, the Texas Education Agency opened 222 investigations into educators alleged to have inappropriate sexual relationships with students, a figure that’s increased steadily in recent years.

It’s a situation that’s playing out in schools across the country every day, but several recent cases of educators becoming pregnant or impregnating students has drawn national attention to the Lone Star State.

And aside from taking on the biggest issues surrounding educator sexual misconduct, SB 7 also targets several intricacies in the law that have allowed the problem to percolate for years, the Dallas Morning News reports.

MORE NEWS: How to prepare for face-to-face classes

The bill ensures teachers will be charged with an improper relationship with a student, regardless of whether the student attends the same school. SB 7 also ensures educators who receive deferred adjudication of guild or are required to register as a sex offender also lose their teaching certificates.

Both issues are currently loopholes in the law.

The legislation allows state officials to void the teaching certificates of educators who help colleagues accused of sex with students, and mandates schools develop policies and training for teachers on maintaining boundaries with students in school and online.

Rena Honea, an American Federation of Teachers union official, told WBAP the epidemic of sexual abuse “is absolutely inexcusable behavior on the part of educators that should not be condoned in any way,” but complained the new laws could have “unintended consequences.”

“Right now it just says that they could potentially go to jail or prison if they knew about it,” Honea said. “Well, you have to be sure they actually know and they have to have proof of that. We don’t want unintended consequences.”