First, this was not a vote on passsing the bill. This was a vote on cloture that requires sixty votes to cut off further debate. The Republicans COULD have stopped it by themselves, but were joined by three Democrats.
Reid was one of them, but that is for parliamentary procedure. That allows him, as the primary sponsor of the bill, to bring it up again.
It's estimated that four to five other Democrats voted to invoke cloture only because they knew the vote would fail. That allowed them to be loyal to the party when in reality the last thing they wanted to do was to have to vote on the actual passage of this pile of crap a year before they stand for re-election!
More information about formatting options