A federal judge on Thursday ruled that the Department of Justice doesn't have the authority to challenge "sanctuary" migration policies in New Jersey cities.