Stock market responds to midterm elections