Harry Kane's 24th Bundesliga goal helped Bayern Munich come from behind to beat Borussia Mönchengladbach and keep pace with leaders Bayer Leverkusen.