The law is designed to make it harder for minor party candidates to get on the general election ballot. Judge says it's OK.