We are flying from Seattle to Barcelona next week with NCL air. We have a five hour layover in New York, definitely worth it to buy a day pass to the airport lounge!
You definitely will need to fill out the Spain Health form and obtain a QR code. Our family will also be travelling with our vaccine cards as back up.
Enjoy your trip!