Washington (CNN) President Donald Trump on Friday signed a massive spending package that funds a large section of government and averts a shutdown, a White House aide confirmed.

The signing, which was scheduled to occur in private at noon on Friday, was done in the Oval Office and several lawmakers were present, the aide added.

The bill includes a continuing resolution that will fund remaining unfunded parts of government until December 7.

There was some uncertainty over whether the President would sign the appropriations bill, and top congressional Republicans made clear to the President that the political fallout of a shutdown, even a small one, would be potentially devastating ahead of the midterm elections.

The President was sending mixed signals over whether he would sign the bill because of its lack of money for his signature campaign promise of a border wall. As recently as six days ago, Trump tweeted a demand to know where the money is for a border wall in what he called this "ridiculous" spending bill. "REPUBLICANS MUST FINALLY GET TOUGH!"

Read More