Ruling is seen as a win for Khalil but does not guarantee he will be moved out of the detention facility in Louisiana.