I don't know how you can see it that way, based on Roberts siding with the illegals.
Maybe the Court wanted to throw the administration a bone before it strikes down Obamacare.
The AZ Decision was based on the State taking over border controls, which is a function of the Federal Government.
What it SHOULD have been about was the State ENFORCING FEDERAL LAW, when the FedGov refuses to.