A stamp of approval has been given by the U.S. Supreme Court for a government review process. The process is prized by high technology companies as an easy and cheap way to combat “patent trolls” and others that bring patent infringement lawsuits.

The justices ruled 7-2 that a type of in-house patent review at the U.S. Patent and Trademark Office does not violate a defendant’s right under the U.S. Constitution to have a case adjudicated by a federal court and jury. The court ruled against Oil States International Inc, a Houston-based oilfield services company that had challenged the legality of the process, called inter partes review (IPR).

While the ruling gave Silicon Valley reason to celebrate, it was sure to displease name-brand drugmakers, which had called the IPR process a threat to innovation.

Originally reported in Reuters.