The Senate at that time had 60 Democrats, just enough to pass Obamacare. However after the bill passed the Senate, Democrat Senator Ted Kennedy died. In his place, Massachusetts elected Republican Scott Brown.