President Barack Obama stepped into the Massachusetts gubernatorial race Saturday to rally for friend and political ally Deval Patrick, who is struggling to overcome the anti-incumbent mood that has swept across the country during this election season.