Putting aside your personal opinions and insults of your president,
let's consider what he just did.
A group of right-wing AG's were about to file a lawsuit (today) that
claimed Obama's Executive Order/Executive Action that created DACA was
illegal and unconstitutional. Obama based it on a shaky legal premise of
"prosecutorial discretion". Many legal beagles believe that was a
stretch and the right-wing AGs stood a good chance of winning.
If, as you claim, that the outcome Trump wants, he could have done
nothing and allowed the courts take over. No skin off his back.
Instead, he took action, repealing the DACA but delaying any action for
two years in order to allow Congress to take up the issue and create new
legislation as the Constitution calls for. He had to play to his base
of course but did so with consideration to the moral aspects of the
issue and the law. It's the assholes in Congress, both parties, that
should be put on public display for their incompetence and lack of spines.
Meanwhile, there's a bunch of left-wing AG's who were ready to sue to
declare the action of the courts had it gone that way as being
un-Constitutional in an attempt to keep DACA on the books.
So, here's what's bizarre about all of this. Righties think Obama
overstepped his authority and are ready to sue. Lefties think Trump
overstepped his authority as well in repealing what Obama had done by
overstepping his authority.