Not that I find our defense budget defensible, but you do have to consider that both education and law enforcement are (substantially) funded at the state and local level, and defense is funded at a federal level.
You can't get a complete picture by only looking at federal spending, you've also got to factor in state and local spending. With that factored in, the view is not quite so dismal.
You can't get a complete picture by only looking at federal spending, you've also got to factor in state and local spending. With that factored in, the view is not quite so dismal.