The Boston congressional primary pits a working-class incumbent against a progressive challenger, but the Democrats risk alienating the voters who once saw the party as their political home.