Lawmakers agree on new prison reform bill