I also think assisting both Israel and Ukraine are in our interests. But there isn't any reason that spending on national security can't be given higher priority than other spending and other spending cut.
For example:
" SNAP spending soared from $91.8 billion in fiscal 2020 to $127.6 billion in fiscal 2021, and fell back only slightly last year."
Given the number of human hippos I see staggering around my city, a significant SNAP cut would not only help the deficit but also public health.
Similarly, Why are we spending money on aid to Gaza and giving aid to Israel when the money spent on Gaza will just be seized by Hamas? Are we funding both sides? How much in frozen Iranian assets are we still holding? Why isn't that being used to fund Israel and frozen Russian assets to fund Ukraine?
You are suffering from the same problem as most of America or you missed the entire point of my post. You went directly to saying there is an American interest in Ukraine and Israel followed by supporting hundreds of billions of aid, without providing a definition and method to identify an American interest. The definition and method to identify should work for all instances of American interests, whether at home or abroad.