Just talking out my butt here, but I think on most votes they have a pretty good idea of where most congresspeople plan to vote and whether or not the amendment will pass. So if some republicans knew it wouldn't pass with their yea vote, they could have felt comfortable giving it a yea as taking credit for standing up to "the administration." Whereas they may not have actually given that vote if they thought it mattered. This opinion is based on no other data than watching House of Cards on netflix and Veep on HBO.
This. The general public has no idea how much posturing is involved in such votes. These people will even trade votes: the Dem says "Please, I want to appear strong on defence, so I'll vote no, while you (the Republican) can vote yes".
Source: knew a couple of people who had worked as aides to congresscritters
You can read the read the tea leaves and see anything you want. It's unusual for so many Democrats to vote against a program being administered by a Democratic president.