The Lunar Module took as long as it did to build not because of manpower shortages, but because its designers needed to overcome certain basic technical hurdlesand money was not capable of changing this fact.
The objective of our national space program is to become preeminent in all important aspects of this endeavor and to conduct the program in such a manner that our emerging scientific, technological, and operational competence in space is clearly evident .
Consequently, the manned lunar program provides currently a national focus for the development of national capability in space, and, in addition, will provide a clear demonstration to the world of our accomplishment in space.
The program is the largest single effort within NASA, constituting three-fourths of our budget, and is being executed with extreme urgency. All major activities of NASA, both in Headquarters and in the field, are involved in this effort, either partially or full time.
Ultimately, Kennedy agreed with Webb on all of his major points. He did not add more money to the NASA budget or order the acceleration of the schedule.
https://www.nasa.gov/history/JFK-Webbcon...ckgnd.html
Apollo was a political decision to achieve a political goal, to demonstrate the technological and organizational power of the United States and thereby demonstrate that democratic capitalism was superior to Soviet-style communism as a form of societal organization.