Harris’s loss was the culmination of the Democratic Party’s years-long drift away from working-class voters in Pennsylvania, writes Richard Hall