Hillary Rodham Clinton’s campaign was suffused in overconfidence, riven by acrimony and weighted by emotional baggage.