High court to hear case to decide where migrants can apply for asylum