The sad thing is, Republicans probably only voted this down to spite president, but Democrats... seriously? What the hell are you doing on the wrong side of your own party platform?
Probably they're listening to the online campaign against the bill. Hundreds of thousands (millions?) have been writing in petitions urging their congresspersons to vote against it. It does seem weird to be agreeing with the GOP though.