Spain are headed back to the UEFA Nations League final, one win away from lifting a trophy for the third straight summer, after outlasting France 5-4 in a scintillating second semifinal on Thursday.