President Trump said he signed a spending bill passed by Congress early Friday morning to end what ended up being an 8-hour shutdown.

"Just signed Bill," Trump tweeted. "Our Military will now be stronger than ever before. We love and need our Military and gave them everything — and more. First time this has happened in a long time. Also means JOBS, JOBS, JOBS!"

The Senate passed the short-term spending bill shortly before 2 a.m. Friday, and the House followed up with a 5:30 a.m. vote to keep the government open.

The government partially shut down after midnight, and many were blaming Sen. Rand Paul, R-Ky., for refusing to agree to a vote Friday afternoon in order to protest the two-year spending deal that was agreed by Senate leaders.

Trump also address Republican complaints that the broad spending agreement reached between Republicans and Democrats spends too much money. He said that deal had to be done to help the military, and said more Republicans in Congress would help prevent overspending.

The short-term spending bill will keep the government open through March 23, and it's the first step toward implementing the bigger spending agreement.

That deal will end the defense and nondefense sequester for 2018 and 2019, and is expected to boost spending by nearly $300 billion over those two years.

The short-term bill passed early Friday also turns off the debt ceiling for about one year, allowing the government to borrow whatever it wants during that period.