Harry Kane earned Bayern Munich a priceless 2-1 victory over Real Madrid in the first leg of their Champions League quarter-final at the Santiago Bernabeu Stadium.