UN conference adopts migration pact despite withdrawals