SAN FRANCISCO — The Drakes Bay Oyster Co. can keep farming a few more months as the U.S. Court of Appeals for the Ninth Circuit sorts out a legal challenge to a government-imposed shutdown.

Three days before its lease was set to expire, the Ninth Circuit on Monday enjoined Interior Secretary Ken Salazar from evicting the company while the appellate court hears the company’s legal challenge.