The bill now heads to the Senate, which is expected to pass it before Friday’s deadline. It would keep the government funded through early next year while Congress debates spending.