In a triumph of short-term politics, Democrats have pushed the White House into a budget deal that guarantees major long-term trouble.

With the government set to run out of cash in early September, threatening not just Social Security checks but even payments on the federal debt, Team Trump saw little choice. The best it managed was to win a needed $46 billion hike in defense outlays over two years to go along with Democrats’ $56 billion jump in domestic spending.

Yet the deal also sets aside budget hawks’ last real victory: The 2011 Budget Control Act, which limited all discretionary spending, is suspended until July 2021. In exchange, President Trump won’t have to get Congress to go along with another debt-limit increase until then.

But the price is stiff. The federal debt blew past $22 trillion a few months ago, and the yearly deficit is on track to cross the $1 trillion mark by 2022. The Congressional Budget Office says debt held by the public is headed “to unprecedented levels” — from 78% of the gross domestic product in 2019 to 92% in 2029 and 144% by 2049.

If interest rates start to rise to even, say, 4%, things get much, much uglier.

Rep. Mark Walker (R-NC) pretty much got it right by tweeting a video of a pile of burning money with the caption “budget deal.”

“I’m the king of debt. . . Nobody knows debt better than me,” candidate Donald J. Trump crowed in a 2016 interview. This deal guarantees that, should he win a second term next year, he’s going to have to show America just how good he is.