Senators left the Capitol early Saturday morning hoping that an agreement hashed out after midnight would win enough support to get the votes to keep the government shutdown from extending to the workweek.

Arizona Republican Jeff Flake said after the marathon vote in which a mostly Democratic group voted to block a government funding bill that Senate Majority Leader Mitch McConnell has now agreed to put immigration legislation on the floor, with or without assurances of a signature by President Donald Trump.

“The way to find out what the president wants on [Deferred Action for Childhood Arrivals] is to pass a bill, to bring a bill to the floor. And that is what the majority leader has now agreed to do,” Flake said. “Now whether that will be enough to bring more Democrats over by tomorrow, I don’t know.”

Flake has backed the effort led by Senate Minority Whip Richard J. Durbin of Illinois and South Carolina GOP Sen. Lindsey Graham to provide a path to citizenship for the DACA recipients.

If the agreement with Flake and Graham succeeds in getting Democrats on board without additional objections, legislation to keep the government funded through Feb. 8, might be headed to Trump late Saturday.