Home-rule legislation signed into law by New York Gov. Kathy Hochul will merge two Justice Courts in the westernmost part of the state.