Pennsylvania’s state Senate on Tuesday approved legislation that is designed to reduce the number of people on probation and in jail, by limiting the length of probation and preventing people from being sent back to jail for minor violations.

The bill passed on a 45-4 vote and now goes to the House of Representatives, where two similar Senate bills have died without votes in previous legislative sessions. However, with the House now controlled by Democrats, the bill's backers said they were optimistic that it will reach Democratic Gov. Josh Shapiro's desk.

Sen. Anthony Williams, D-Philadelphia, said the state's probation system is in urgent need of reform.

"I can’t tell you how many generations of people have been lost to the probation process," he said during floor debate.

PENNSYLVANIA HOUSE PASSES BILL THAT WOULD ALLOW NON-US CITIZENS TO TEACH IN THE STATE

The bill, which has the backing of the Senate's Republican and Democratic leaders, has emerged as part of a nationwide reconsideration of probation and parole measures, as states try to find alternatives to prison for nonviolent offenders and the mentally ill.

Pennsylvania is among the states with the highest rates of people under community supervision, according to federal statistics.

The case of rapper Meek Mill helped shine a light on it after he spent most of his adult life on probation — including stints in jail for technical violations — before a court overturned his conviction in a drug and gun case in Philadelphia.'

Pennsylvania state house in Harrisburg

The Pennsylvania state Capitol is seen on Dec. 14, 2020, in Harrisburg. The Pennsylvania state Senate has approved legislation aimed at reducing the number of people on probation and in jail. (AP Photo/Matt Slocum, File)

The bill aims to limit the length of probation sentences and the circumstances under which a non-violent offender on probation can be sent to jail. It does not, however, put a cap on the length of a probation sentence.

PENNSYLVANIA SENATE PASSES DISTRACTED DRIVING CRACKDOWN

Under it, a judge can order an end to probation, regardless of any agreement on a sentence between a prosecutor and the defendant. Judges would also no longer have wide latitude to extend probation.

State law currently does not limit the length of probation sentences and critics say non-violent offenders are often incarcerated for technical violations that aren’t crimes, disrupting their families and employment. It also disproportionately affects racial minorities, they say.

Under the bill, probation review conferences would be required within certain periods of time, including two years for someone who committed a misdemeanor and four years for someone who committed a felony. Probation review cases can be held earlier for good behavior.

CLICK HERE TO GET THE FOX NEWS APP

Probation would be required to end unless the defendant commits a crime that demonstrates that they are a threat to public safety, has not completed certain treatment or has not paid restitution under some circumstances.

The bill also prohibits courts from extending someone's probation for not paying fines or court costs if they are found to be unable to afford it.s or court costs if they are found to be unable to afford it.