Some 18 Republicans joined the Democrats to back the measure, after a smaller group broke ranks on another vote in recent days.