Jameel Jaffer , director of the American Civil Liberties Union 's National Security Project , said the decision makes a clear statement that the legal system under which Khadr was detained and charged was unlawful .