The Supreme Court ruled Tuesday that a corporation’s principal place of business is where the company’s executives work, not where the company’s products are sold.

The unanimous ruling by the high court likely will make it harder to sue out-of-state corporations in state courts, which are considered friendlier to class-action lawsuits than are federal courts.