And yet many ascribe a whole range of knock-on benefits as a consequence of the Apollo missions. Had those people had their way, one wonders what technologies we wouldn't have today because, in the moment, no one could find a clear utilitarian justification for the program.
Knock-on effects can just as well be ascribed to alternative targets for those Apollo funds. Those don't take much imagination to come up with, e.g. reducing the student-teacher ratios in schools.
Often politics is not a question of "funding this good thing or funding this great thing", but rather "funding this good thing that we can agree on, or funding nothing".