We have spent a lot less on NASA than on the "Great Society" programs, and all Americans have benefited from NASA's technology. The money spent on the GS programs has been money thrown down the toilet.
That being said, since the end of the Apollo program, NASA is an agency that does not have a firm charter, and could really use a massive overhaul.