The court found that it did not. For the Court, Rule 23 expressly limits the ability of the state to prohibit the class for any reason. Allowing the state to disallow the class would, for all intents and purposes, mean allowing the state to control federal civil procedure, or, in other words, invalidate Rule 23. Allowing a state to invalidate a federal rule of civil procedure would mean that the federal rule of civil procedure is flawed; respondent does not argue that the rule of civil procedure if flawed, only that the state supersedes the rule because, antecedent to the suit, New York law invalidated it.
That gets to the heart of the enforceability of federal civil procedure. If a state may make a law which prohibits a federal suit, then it entices states to enact statutes which prohibit federal suits in the area of most interest to them--suits in which they are parties. In the interest of disallowing such a tactic before it is even tried, the Court has decided to make it clear to New York state that it cannot invalidate a federal suit by limiting the standing of parties to sue.
Ginsburg's argument in her dissent that petitioner is trying to turn a $500 mole hill into a $5,000,000 mountain is not compelling. If the federal rules of civil procedure produce an unjust result, then Congress must act to prohibit it. However, allowing a state law to invalidate a suit where the parties have standing in federal court invites states to prohibit suits in which they are parties--which seriously threatens the entire federal system. It would be like the President ceding authority to the governor of New York for the armed forces of the United States because Albany, NY was under attack.
The governor may be the best judge of measure to repel the attack, and the President may be wise in that specific situation to cede his authority, but the threat to the federal system presented the day after such a tactic is tried makes the decision ultimately unwise.