The Senate has approved a short-term spending bill to fund the government until March 14.