The F.B.I. search of Mar-a-Lago is a coda to the years of tumult between an erratic president and the nation’s intelligence and law enforcement agencies.