German coalition partners agree on migration compromise