Isn't it actually the case that it is still illegal to be an illegal alien per federal law, but the ruling says a state cannot make and enforce the same law because of federal supremacy in this area?
It is still illegal to be an illegal alien, but the current (and several previous administrations) refuse to enforce those particular federal laws.
As a general rule, it is not a crime for a removable alien to remain in the United States.