The withdrawal of Robert F. Kennedy Jr. from the presidential race and his endorsement of former President Donald Trump was yet another extraordinary moment in an election that has been anything but predictable.