The Supreme Court ruled Thursday that states cannot limit drug manufacturers’ use of information about which prescription drugs doctors like to prescribe.

The court voted 6-3 to strike down a Vermont data-mining law aimed at boosting the use of generic drugs by controlling the flow of information about brand-name medications. The ruling imperils similar laws in Maine and New Hampshire.