The bill, a sweeping overhaul of the state’s criminal justice system, must still be signed by Gov. J.B. Pritzker before becoming law