US President-elect Donald Trump will face a test before a Manhattan judge on Tuesday.