Former President Donald Trump has been granted a one-week delay to testify in a defamation trial in New York.