SAN FRANCISCO — The U.S. Court of Appeals for the Ninth Circuit on Tuesday found that an Alameda County ordinance requiring pharmaceutical companies to fund a program to dispose of unused drugs is constitutional.

A three-judge Ninth Circuit panel upheld a lower court ruling on summary judgment that the ordinance—the first of its kind targeting the pharmaceutical industry—doesn’t violate the dormant Commerce Clause of the U.S. Constitution.