IMO, LBJ was able move the Great Society legislation because he had a martyred JFK to use as a club on congress.
JFK could not have gotten 20% of what LBJ did. In fact, JFK’s political clout was rather weak.