A federal judge in New York has denied Prince Andrew's request to dismiss a sexual complaint against him.