Harry Kane's two second-half penalties helped to secure Bayern Munich's seventh consecutive league win.