The appearance in New York marks the first time a former president has been compelled to testify before Congress under a subpoena.