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.