Merkel's migrant deal hangs on Social Democrat, EU approval