US President-elect to appear at a court hearing just 10 days before his inauguration.