His decision to quit the race ended a remarkable chapter in American political history — and started one that may yet define his legacy.