Athletic Club have ended their two decade wait for a Copa del Rey title after edging past Mallorca on penalties.