I think Apollo was lucky that Johnson came in after Kennedy. I think if a republican had won in 1964 probably there wouldn’t have been a moon landing. By the time Nixon came in there was already too much momentum to cancel it.
Any attempts to change the game would have been seen for exactly what it was: weakness. He may have hated Kennedy but he loved the US more.
Well, getting shot. Kennedy wasn't all that important in getting is into Vietnam, that was mostly before and after Kennedy.
Obviously, launch & orbital vehicles are critical dual-use civilian/military technologies (space exploration & delivering ICBMs).
In contrast, visits to the moon are not (at least for the near & intermediate future) dual-use civ/mil technologies.
Nixon killed the moon program when he got into office, and it is very unlikely he would have started one had he won in 1960.