The stopgap spending measure was the final legislative deadline facing the Senate before the midterm elections. It heads to the House next, with a midnight deadline on Friday.