Lawyers acting for Khan had gone to the Court of Session in Edinburgh after his appeal to a First-tier Tribunal (FTT) against deportation was rejected and he was refused permission to have his case heard at an Upper Tribunal (UT).
The BBC's Danny Shaw says it seems this ruling will pave the way for Hindawi's release and eventual deportation back to Jordan, and there will be further legal submissions on the case next week.