Legislation on stop-gap measure now moves to the Senate to avoid a government shutdown