Would-be candidates win court case, still won't be on ballot