A crisis that brought the U.S. and the Soviets to the brink of nuclear war in 1962 reshaped U.S. politics.