We give and have given significant military aid to Ukraine. The stuff we sell/sold to Israel and elsewhere not only couldn’t be “rerouted” to Ukraine, but even if it could, it’d be of little or no use to them. I get the sentiment, but the reality is not as you say it is. Ukraine needs howitzer shells, ammunition, fighter jets, air defence missiles and guns, Tanks, intel and etc. They’re burning through that stuff faster than it’s being provided, now. Particularly since the US has stopped providing anything. But that stuff, by and large, that’s not what we sold (under legally binding contracts) to other places, like Israel. And the value of the aid to Ukraine exceeds the cumulative 5 year period value you quoted for licenses of sales to Israel.
There’s obviously a thread for Israel, if people want to talk about the horror story there, in Gaza, but for Ukraine, yes, western nations are far from “all in” to different degrees and as a consequence Ukraine is struggling and losing ground.