Biden leaves behind a complicated legacy of legislative wins and economic gains, along with a trail of fractured relationships and grievances within his own party.