Court upholds NY judicial nominee system