It’s more complicated than that. You have to read the specific statutes in question to see what they require or don’t require.
The USAID-related litigation has largely been unsuccessful because the appropriations bills don’t necessarily require USAID to do particular programs. Most of the appropriations bills appropriate money for the State department.
That is not true. Funds are not allocated "for the State department". There is a statutory purpose for every allocated dollar.
https://news.ycombinator.com/item?id=50261784#50265886