The American Civil Liberties Union intends to take the case to the Supreme Court.