In the historical context, its important to remember that the Kennedy’s authorized spying on Martin Luther King in 1963 because MLK was pushing the race issue so hard that it would force JFK to take actions on civil rights offensive to southern Democrats and hurt his re-election in 1964.
Politics and winning elections drives FBI activities directed by the party in power.
MLK did in fact have communists connections and J Edgar Hoover had the FBI surveilling lots of people.
But the FBI being weaponized by the Obama administration to spy on a competing campaign is entirely different.
And in the historical context, it was the MSM that was pushing the race issue so hard. The Kennedy brothers were afraid of a civil war being inflamed by the MSM, not the next election.