That’s different. That money is the federal reserve printing, well, money and exchanging it for existing securities. They can always get money back in exchange for those securities if there is money oversupply. It is reversible.
When federal government spends more money than it has, there is no reverse mechanism, because the government does not get securities in exchange of new money it introduced to economy.