Judge Michael Farbiarz said the government cannot keep Khalil detained based on its accusation that he threatens U.S. foreign policy goals. But the judge gave the government time to appeal.