They were really fortunate that most of the Senate seats up for election this year were already held by Democrats. There are 23 current seats where Democrats are leading to 9 where Republicans are leading.
http://www.electoral-vote.com/
Any other Senate election cycle would have spelled disaster for Republicans right now. As is, they still may lose the Senate.