Manchester United enter the international break with two successive wins after beating Real Sociedad and Leicester City.