Bayern Munich striker Harry Kane scored his first Bundesliga goal from open play since November in a 2-1 win over Freiburg.