On Capitol Hill, Republicans said it was the best deal possible.
"In a compromise, neither side gets 100 percent of what they want," said Sen. David Perdue (R-GA).
But the details produced a lot of grumbling from GOP lawmakers in the House, who want to see less spending - not more.
"The spending deal before us would continue Washington’s reckless spending with an unlimited line of credit," said Rep. Mark Green (R-TN).
"This deal irresponsibly jacks up spending by $320 billion," said Sen. Ted Cruz (R-TX), who complained 'this deal just kicks the can down the road again.'
"This proposal digs the US deeper into debt," said Rep. Jim Banks (R-IN), who said it was hard for budget haws to support a deal that adds more money to the deficit.
"Our credit card is maxed out," said Rep. Mark Walker (R-NC). "What this budget deal does is ask the credit card company for another $320 billion in credit."
A House vote is expected on the plan by Friday, with Senate action expected next week.
Lawmakers needed to act now - before going home on an extended summer break - because Trump Administration officials were worried that the debt limit needed to be expanded soon after Labor Day.