Both chambers of Congress plan to vote on a border deal that will avert a partial government shutdown on Thursday.

The planned vote would get the legislation to President Trump’s desk before the funding for the Department of Homeland Security and other agencies expires on Saturday.

The Senate is expected to vote on the legislation first, and then the House.

The deal — which provides $1.375 billion in border wall funding, well below the $5.7 billion Trump was demanding — was unveiled by a bipartisan, bicameral group of negotiators on Monday. The legislation text itself was only made public Wednesday evening.

Trump has not made a firm commitment to signing the bill. But his allies in Congress expect that he will sign it as long as the legislative text lives up to how the Republican negotiators were describing the agreement earlier in the week.