Bayern Munich come from behind to secure a 4-2 victory against Stuttgart and win their 35th German Bundesliga title with four games to spare.