Thirty-three European nations agreed a migration pact in Yerevan to combat smuggling networks and accelerate deportations. Spain did not sign.