After a delay related to immigration policy, the Senate passed a $1.7 trillion spending bill and sent it to the House just one day before a partial government shutdown.