Manchester United produced a valiant performance to earn a 1-1 draw with UEFA Champions League holders Bayern Munich.