U.S. President Donald Trump returns to the Oval Office at the White House after his remarks at the National Prayer Breakfast in Washington, U.S. February 8, 2018. REUTERS/Jonathan Ernst

WASHINGTON (Reuters) - U.S. President Donald Trump signed a stopgap funding measure into law on Friday, ending a short federal government shutdown after Congress let a midnight deadline slip.

The bill extends government funding through March 23 to keep agencies open while separately raising military and domestic spending by almost $300 billion over two years financed through borrowed money. It also extends the federal debt ceiling to March 2019.

“Just signed Bill. Our Military will now be stronger than ever before,” Trump wrote in a post on Twitter.