Starting next year, a judge, not ability to pay bail, will decide who remains jailed in the state before trial.