Real Sociedad triumphed over Atlético Madrid in the Copa del Rey final, winning 4-3 on penalties after a 2-2 draw.