UN leaders warn of 'harmful' consequences as UK's controversial migrant law