Ballot box disputes: Democrats use legal action when losing races, but want results untouched when they lead