The court’s decision to strike down the rule is being hailed as a major victory by opponents of the regulation.