The Democrats were hoping for a clear electoral victory