Bayern Munich stayed two points clear at the top of the Bundesliga as Matthijs de Ligt's fine second-half drive proved enough for a 1-0 win away at Freiburg.