Sen. Ed Markey will appear on the November ballot in Massachusetts after fending off a Democratic primary challenge from Rep.