Former U.S. President Donald Trump appears at court in New York