The vote came shortly before senators planned to recess late Wednesday to campaign ahead of the Nov. 3 midterm elections.