The US Senate has rushed through the final passage of a bipartisan plan that would temporarily fund federal operations and disaster aid.