EU pledges support to stem migrant arrivals to Spain