Congress can legislate immigration policy within very wide limits, legally. Legislate is the key word here.
DACA stands for "Deferred Action". OK, deferred until when? Do it legislatively, or not. Our immigration laws are a total mess today. I've seen some of it in action personally.