The Democratic Party lost at least three Senate seats, and possibly as many as seven, while largely failing in its efforts to gain seats in the House.