Barcelona booked their spot in the Copa del Rey final with a 1-0 win over Atletico Madrid, sealing a 5-4 aggregate victory.