They spent close to~10% of GDP year on year during that decade on NASA.
They employed over 4lacs engineers of various fields, countless men in non-science fields.
Remember what JFK said:
"We choose to go to the moon in this decade and do the other things, not because they are easy, but...