Donald Trump appeared in court, but it wasn’t a legal proceeding