In New York State, voters have put up with plenty of mishaps in recent elections: hourslong waits at early voting sites; polling locations unreachable by public transportation; and a contested congressional race that dragged on for more than three months before being settled by a judge.