Updated at 7:13 p.m. ET
After facing a series of delays, the Senate approved by voice vote a one-week temporary funding measure Friday afternoon to avert a government shutdown hours before a critical deadline.
The president signed the bill Friday evening. Without it, federal agencies would have run out of money at midnight Friday.
The Senate's move came as Sen. Bernie Sanders, the Vermont independent, relented on his demands to vote first on a measure to allow direct payments to Americans.