The US Supreme Court has overturned a tax-related ruling from 1992, freeing state and local governments to collect billions in internet sales tax, as reported by Bloomberg. The 1992 ruling from Quill v. North Dakota, focused on mail-order and catalog purchases, requiring that a business must have a physical presence within a state in order for the state to collect sales tax.

The 5-4 vote overturned this ruling, citing companies like Newegg, Wayfair, and Overstock in the Supreme Court decision, stating that “each easily meets the minimum sales or transactions requirement of the Act, but none collects South Dakota sales tax.” Amazon began voluntarily collecting taxes in the 45 states that require it last year, but only on items from its own inventory, meaning sellers on Amazon Marketplace may be impacted by this ruling.

Writing for the court, Justice Anthony Kennedy said the 1992 decision was “unsound” and obsolete in the e-commerce era. As a result of this new ruling, internet retailers can be requited to collect sales tax in states where they have no physical presence. Estimates say that this broader taxing power will now let state and local governments reap an additional $8 billion to $23 billion a year in revenue.

The challenge to overturn Quill v. North Dakota was brought to the Supreme Court by South Dakota. South Dakota passed a law two years ago demanding that all retailers that, on an annual basis, have more than $100,000 in annual sales or engage in 200 or more separate transactions, pay a 4.5 percent tax on all sales, “as if the seller had a physical presence in the State.” The state government then filed suit to have the case heard by higher courts, and the Supreme Court agreed to hear the argument earlier this year.