Bill aims to divert more low-level offenders with substance or mental health issues away from jail