The tech billionaire became a huge focus of a state Supreme Court race. It turned out to help Democrats a lot.