After Democrats captured control of the statehouse two years ago by wrestling power from Republicans in the state Senate, it took only months for lawmakers to pass sweeping pretrial reforms to New York's criminal justice system.