The vote, which passes 178 votes to 169, enshrines into law an embargo that has been in effect since the war began.