Lawmakers voted 217-213 for the bill.
Congress has a Friday evening deadline or the federal government will shut down.
The bill will now go to the Senate, where Republicans need 60 votes to pass.
U.S. CapitolGetty Images
They likely will need to convince eight Democrats to vote for it.
Related Stories
Donald Trump Removes Doug Emhoff And Other Joe Biden Appointees From U.S.
Although Congress has the power of the purse, he suggested that stopping DOGE would be subverting executive authority.