The way it's supposed to work is the executive sends an aspirational budget to congress that embodies his policy agenda, our representatives vote on the budget, the congress appropriates the money that we send the government to the executive branch, and then the executive branch spends that money, again, faithfully. That's the oath he took. What that means operationally is that he can't just defund things we voted for in the budget that doesn't match his political agenda. Doing so should be impeachable, because it would represent a breach of his oath. It doesn't matter that he has a different agenda, he's the president for everyone.
Since he's not doing it this way, that's why people are pointing it out as unconstitutional, and illegal.
For DOGE to be legal what it needs to operate in just an advisory capacity. It should recommend things to cut, but there has to be reasons, an auditable process, transparency, and meaningful oversight. For starters, Musk has a massive conflict of interest in that he's a recipient of government contracts. So he himself shouldn't even be part of this process without first answering to that. If we keep going down this path, the people advocating for it now will not like being on the receiving end when that level of capriciousness is directed against them.
Finally, this is not capricious, this is absolutely well considered. If you haven’t realised the government has spent vast quantities of money, printed advanced quantities of money to do it, and caused record in inflation.