A federal judge said that the case could go forward, but Trump signaled that he would challenge that.