A bill that aims to relegate New York State Supreme Court judicial races to downballot status has cleared both legislative houses.