The Senate rushed through final passage of a bipartisan plan to fund federal operations and prevent a government shutdown.