A judge has ruled that the New Jersey State Bar Association's system of promoting diversity on its boards and committees amounts to an unlawful quota system.