A federal judge has declared the DACA immigration program illegal but will allow the policy to continue for existing recipients.