Democrats just closed out a formidable special election season with an astonishing flip