There's a big difference between the circumstances. We were already in a free falling recession when Obama became President. Yes Obama used more than 800 billion dollars to prevent what many would say could have been a depression. And on top of that expenditure we were in a recovery during the first four years of the Obama administration where the lack of revenue from an ailing economy was causing large budget deficits. But just before Obama's second term, the economy was doing well enough that revenue was again coming into the treasury. Only when the economy could afford the lack of government spending did Obama begin cutting budget expenditures in his second term.
By contrast when Trump took over, there was already a growing economy in place and the budget deficit was for the most part shrinking. Trump immediately took on almost two trillion dollars in debt spread out over eight years with his tax cuts. He then felt that we could abandon the sequestration Obama had put in place, doubling the budget expenditures, believing it would be compensated by higher revenue from a faster growing economy. At the end of 2019, Trumps third year in office we now have almost a trillion dollar deficit and we're growing a giant debt bubble in the midst of an economy that can't generate the revenue to prevent another recession.