That is absolutely a factor, but there are also absolutely people who view this as an important part of American power projection. While I don’t think that supporting Israel has been making the US stronger in this era, it has historically been a key strategic location due to how close it is to the suez and global oil trade.
It is darkly funny how cheaply American politicians can be bought, meanwhile we shovel endless piles of money to Israel, which it then uses to shore up political support for continuing to send them money and ammunition.