DACA has no basis in law.
It is blatantly illegal.
The Roberts Court ducked having to rule it illegal.
Sorry, that is not correct.
Trump persuaded a group of Conservative state Attorneys General to withdraw their lawsuit BEFORE it went to the Supreme Court.
As to the legality....
The “D” in DACA stands for “Deferred Prosecution.”
As the chief law enforcement officer of the USA, Obama did have the authority to “defer” prosecution.
However, Trump is not helpless.
Trump can enforce the exact language in the Immigration and Nationality Act and deport the DACA kids, any time he wants to.
But, he is never going to do that.