The north African team reach the quarter-finals for the first time after beating Spain on penalties.