Supreme Court justices on both the left and right said Wednesday that New York’s system of letting political bosses essentially pick trial judges does not appear to violate the Constitution.

The unique system has primary voters elect delegates to a convention that then chooses candidates who most often run unopposed in the general election.