Democrats secure Senate majority, defy midterm expectations