Real Madrid needed extra time to get past Real Sociedad and reach its second Copa del Rey final in three seasons on Tuesday.