Lawyers for the man said a social media post James made before her appointment as special prosecutor demonstrated a “substantial risk of prejudice.”