Scandals could be shaping several races in the midterm elections, particularly in places where even small margins can change the outcome.