Even technologies that are not direct spinoffs often benefit greatly. For example the Apollo onboard computers created demand for smaller computers, accelerating development of integrated circuits and dropping their price. Some credit Apollo with singlehandedly dropping IC prices from $1000 to $20 [1]. If it wasn't for Apollo we likely wouldn't be on this forum.
At its absolute peak the Apollo program consumed 4.4% of the US federal government budget.
https://www.jpl.nasa.gov/infographics/infographic.view.php?i...
https://en.wikipedia.org/wiki/NASA_spinoff_technologies