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