Congress has unveiled legislation to dodge another government shutdown and — for now — calm the dispute over President Donald Trump's proposed border wall.

The measure would fund nine federal departments through Sept. 30, allowing 800,000 workers who faced the prospect losing more pay to breathe a sigh of relief. Congress aims to vote on the proposal Thursday to beat a midnight Friday deadline. The Senate is expected to vote on it Thursday afternoon, followed by the House Thursday night.

On Thursday afternoon, Trump said he was "reviewing the funding bill with [his] team at the White House." As he often does, the president c

As the spending deal developed this week, Trump grumbled about what he called inadequate funding for border barriers. But barring a sudden change, the president is expected sign the legislation into law and prevent the second partial shutdown since December. On Wednesday, Trump said he would look for "land mines" in the bill after its release then decide whether to approve it.

After a chaplain opened the Senate with a blessing Thursday morning, Sen. Chuck Grassley, R-Iowa, offered a plea of his own.

"Let's all pray that the president will have wisdom to sign the bill so the government doesn't shut down," he said.

CSPAN Grassley prayer video

The legislation clears $1.4 billion to build bollard fencing — not a concrete wall as Trump first proposed — on the border. It would put some limits on where the government can build structures.