A judge has dismissed a race-discrimination suit brought against the New Jersey State Bar Association by its former assistant general counsel and director of diversity initiatives.