Republicans to hold Senate while Democrats make gains in House