Former US President Donald Trump due to appear in New York court