The money is not going to waste. It is going toward border security. Appropriations for military construction, pay and whatnot, you don't think that money will come around again for those projects? They are just postponed for a different priority at the moment.
And the money lost by the pentagon seems to fade out of the news instantly. Sometimes by some huge incident that happens. All that money about the same amount as the US national debt. Go figure.