President Obama appeared at a campaign rally in Boston for US Senate candidate Edward Markey on Wednesday.