CUPERTINO, Calif. — Apple says it will disable a blood-oxygen monitoring feature on its two most popular watches in the U.S. beginning Thursday to comply with a court-ordered revival of a sales ban stemming from a patent dispute.

The decision to turn off the blood-oxygen sensor for consumers who buy either the Apple Watch Series 9 or Ultra 2 in the U.S. came after a federal appeals court on Wednesday refused to extend an order that had allowed the watches to remain in stores during a battle over the rights to some of the technology.

A temporary stay issued by the U.S. Court of Appeals three weeks ago had allowed the two watch models to return to stores in the U.S. after Apple pulled them from shelves and websites just before Christmas as part of a long-running battle with medical technology company Masimo.

The U.S. International Trade Commission in late October ruled a blood-oxygen sensor in the Apple Watch models infringed on Masimo’s patents, a finding that Apple is trying to overturn in appeals court. But that process could take at least a year to unfold, forcing the Cupertino, California, company to find another way to keep its premium watches available in the U.S.

In a Monday court filing, Masimo disclosed Apple has won approval from the U.S. Customs and Border Protection on revisions that would remove the blood-oxygen sensor from the watches.

Signaling Apple’s confidence of winning the appeal of the ITC ruling, the Series 9 and Ultra 2 models sold in the U.S. beginning Thursday will still come with a Blood Oxygen icon, but when it’s pressed, users will be greeted by a notice informing them the technology isn’t available.

Those who have already purchased the Series 9 and Ultra 2 models in the U.S. will still be able to use the blood-oxygen sensor as they have been. The sensor will continue to work on those watches purchased outside the U.S.

If Apple had opted to stop selling the Series 9 and Ultra 2 in the U.S., it threatened to put small dent in the company’s annual sales of $383 billion. Although the company doesn’t disclose the volume of Apple Watch sales, analyst estimate the product accounts for about $18 billion in annual revenue.

Apple’s lower-cost watch, called the SE, isn’t affected by the changes caused by the battle with Masimo because that model has never had the blood oxygen feature. But that technology, which Apple introduced into its watch lineup in 2020, has been a key part of the company’s effort to position the devices as life-saving tools to monitor users’ health.

In court filings urging the appeals court to continue blocking the sales ban, Apple argued that enforcing the ITC’s patent order would cause unnecessary harm to “a pioneering product made by a quintessentially American company that directly employs more than 90,000 employees” in the U.S.

Masimo argued that Apple won’t be significantly harmed by the U.S. sales ban of the Apple Watch models, given most of the company’s revenue comes from the iPhone. What’s more, Masimo sought to portray Apple as a corporate bully engaged in the brazen theft of intellectual property widely used in hospitals and other health professionals that treat about 200 million patients annually.