"... the dispute before the Court is not whether DHS may rescind DACA.  All parties agree that it may."
and...
"We do not decide whether DACA or its rescission are sound policies.  The wisdom of those decisions is none of our concern.  We address only whether the agency complied with the procedural requirement that it provide a reasoned explanation for its action."  - Chief Justice John Roberts, in his majority opinion on the DACA ruling.
There was no precedent set with this ruling.  The dispute is primarily one of procedure and the Trump administration was sloppy and insufficient.  However, nothing prevents DHS from trying again... maybe with a greater show of competence next time?