The moon might have been seen as similarly silly. US might much more easily have focused on nearer space with a greater ROI on the project itself. But apart from the geopolitical bragging rights, the technical constraints of a moon shot meant the development of all kinds of technologies that rippled outward through society. We see some of the same effects with the LHC. Its direct uses have limited (immediate) practical impact, but the technologies required to build it, harness & process those volumes of data, etc., have spurned on all sorts of more immediately practical innovations.
And if that had been the only benefit then of course the whole program would be questionable. You asked for examples for the moon program and LHC, and you were given them in ample supply. If they aren't satisfactory in budging your opinion, this flow of discourse puts the burden on you to say something intelligent, and cherry picking only a single, and perhaps least relevant example doesn't really accomplish that.
There's no lack of material demonstrating that NASA's accomplishments contribute more to the economy than they drain in tax dollars [0] and it's difficult to ignore the volume & leaps of technical advancements achieved by earlier missions. You clearly have a different view though, so perhaps sharing that in a constructive way would be more beneficial than posting shallow comments that obviously ignore the information you requested.