The detention of Khalil, a U.S. permanent resident, has been condemned by multiple human rights groups as an assault on free speech and due process