SAN FRANCISCO — The California Supreme Court today carved out an exception to a quarter-century-old ruling that banned cities and counties from hiring private counsel to handle public-nuisance suits on a contingency fee basis.

In a unanimous ruling, Chief Justice Ronald George held that such hirings are acceptable as long as the government lawyers retain complete control over all critical decision making.