City looked poised to arrive in the Spanish capital next week with a one-goal lead after Erling Haaland successfully converted his 80th-minute penalty following a foul on Phil Foden .