You could debate which part of the $6.4T was funded by debt, but it seems reasonable to say that foreign aid is not a mandatory expenditure. That also doesn't mean it's not worth borrowing for.
There is a helluva lot of fat to cut in the budget. Ukraine aid should not be the first port of call.