Amin Akhoondi was told he had a "truly shocking record" when he appeared before a judge