A host of countries are refusing to support a UN pact aimed at improving global cooperation on migration.