SAN FRANCISCO — Lawyers for the medical marijuana industry said on Monday that they would seek court orders to halt a threatened federal crackdown on marijuana dispensaries, their landlords and marijuana growers.

In legal motions to be filed on Tuesday, marijuana distributors and some medical patients will ask federal judges in four districts to issue temporary restraining orders to prevent federal prosecutors from taking action, lawyers and a lobbyist for the industry said at a news conference here on Monday.

“The government’s irrational policy has reached a breaking point,” said Matthew Kumin, one of the lawyers. “The federal government said it will not prosecute patients, and yet they want to shut off their supply. This doesn’t make sense.”

Marijuana remains illegal under federal law, though its use is allowed for medical purposes in California and some other states. But federal prosecutors and drug agents say that behind the mask of meeting medical needs, much of California’s burgeoning marijuana industry is engaged in large-scale illegal sales.