Atlético Madrid survived an FC Barcelona onslaught to go through to the Copa del Rey final for the first time in 13 years.