Judge rules that former lawmaker Don Shooter can run for state Senate