The US SCOTUS did not legalize gambling. They said the federal government can allow it, or ban it, but it must treat all states the same.