Defendant a California corporation engaged in the operation of electric works and the distribution and sale of electric energy as a public utility within the plaintiff Sacramento Municipal Utility District, appeals from a judgment of the Superior Court of Sacramento County rendered against it in favor of plaintiff for attorney’s fees incurred by plaintiff in the defense of an action in the United States District Court and the United States Circuit Court of Appeals, and in opposing the issuance of a writ of certiorari by the United States Supreme Court, which action was prosecuted by defendant to .restrain plaintiff from issuing, selling and delivering its bonds voted for the purpose of financing the acquisition and construction of a competing system for the supply of electric energy to the inhabitants of plaintiff district. The instant action was commenced pursuant to the provisions of section 526b of the Code of Civil Procedure.
On November 6, 1934, the electorate of plaintiff, a municipal utility district of this state organized under the Municipal Utility District Act of 1921 (Stats. 1921, p. 245, as amended; Deering’s Gen Laws, 1937, Act 6393), authorized the issuance of $12,000,000 in bonds for the acquisition and construction of works for the supply of electric energy to the inhabitants thereof. On January 2, 1935, pursuant to section 16 of said act, plaintiff commenced a proceeding
in rem
in the Superior Court of Sacramento County to determine the validity of those bonds. Defendant appeared in that proceeding and contested the validity of said bonds on the ground that the taxation by the district of defendant’s property situated within said district to pay the bonds would constitute a taking of its property without due process of law. It was ultimately.determined by this court on appeal in that proceeding that the bonds were valid, and it was also determined that the ground of invalidity above mentioned advanced by defendant therein could not be properly consid
*687
ered in that proceeding.
(Sacramento M. U. Dist.
v.
All Parties,
6 Cal. (2d) 197 [
Thereafter defendant commenced an action in the United States District Court against plaintiff seeking to have enjoined the issuance and sale of said bonds, attacking their validity upon the ground above mentioned. No temporary restraining order or preliminary injunction was ever issued and the District Court refused to grant a permanent injunction.
(Pacific Gas & Electric Co.
v.
Sacramento M. Utility Dist.,
That judgment is based upon the right of action created by section 526b of the Code of Civil Procedure which reads:
“Every person or corporation bringing, instigating, exciting or abetting, any suit to obtain an injunction, restraining or enjoining the issuance, sale, offering for sale, or delivery, of bonds, or other securities, or the expenditure of the proceeds of the sale of such bonds or other securities, of any city, city and county, town, county or other district organized under the laws of this state, or any other political subdivision of this state, proposed to be issued, sold, offered for sale or delivered by such city, city and county, town, county, district or other political subdivision, for the purpose of acquiring, constructing, completing, improving or extending water works, electric works, gas works or other public utility works or property, shall, if the injunction sought is finally denied, and if such person or corporation owns, controls, or is operating or interested in, a public utility business of the same nature as that for which such bonds or other securities are proposed to be issued, sold, offered for sale, or delivered, be liable to the defendant for all costs, damages and necessary expenses resulting to such defendant by reason of the filing of such suit.”
It is not questioned that plaintiff’s claim for attorney’s *688 fees upon which the judgment is based comes within the terms of that section, defendant’s sole contention being that said section is unconstitutional as it impairs its right to resort to the federal courts for redress and invades a field belonging to the exclusive jurisdiction of those courts (U. S. Const., art. VI, clause 2; art. III, § 2); that it is a general law without uniform operation, is a denial of equal protection of the laws, and a grant of special privileges. (U. S. Const., Fourteenth Amendment; Cal. Const., art. I, §§ 11, 21; art. IV, § 25.)
It is not questioned that as a general rule the jurisdiction of federal courts over cases within the field of their jurisdiction cannot be enlarged, diminished or impaired by state statutes or regulations; and a person may not be deprived of his right to resort to the federal courts by state legislation. (United States Const., art. VI, clause 2, art. III, § 2;
Home Insurance Co.
v.
Morse,
However, we believe it is clear that section 526b does not deprive plaintiff of access to the federal courts or impair or restrict the jurisdiction of those courts. That section creates a liability for attorney’s fees in the type of actions specified therein regardless of whether the action in which the fees are incurred is in the state or federal courts. No attempt is made to keep parties out of the federal courts by singling out those courts alone as the forum in which the liability for the attorney’s fees is incurred, while imposing no liability when the action is prosecuted in a state court. It is only in the event the one upon whom the fee is imposed is unsuccessful in his action that he becomes responsible for the fee. Thus his position is no different from that of any other liti
*689
gant. If he chooses to litigate the question, he runs the risk of being required to reimburse his opponent for the latter’s expenses. The obligation is an independent one created by statute' which in no wise purports to regulate or limit the jurisdiction of the federal courts. If the allowance of fees were confined to actions in state courts, the inequitable result would follow that a penalty would be imposed upon a resort to those courts, and an inducement created to seek relief in the federal courts. The substantive right created by the state Legislature in enacting section 526b should not be made dependent upon the court in which the action is prosecuted. In the case of
People of Sioux Co.
v.
National Surety Co.,
"Disregarding mere matters of form it is clear that it is the policy of the state to allow plaintiffs to recover an attorney’s fee in certain cases, and it has made that policy effective by making the allowance of the fee mandatory on its courts in those cases. It would be at least anomalous if this policy could be thwarted and the right so plainly given destroyed by removal of the cause to the federal courts.” (Emphasis added.)
It must be remembered that the right created by the statute in question is an independent one. It is not dissimilar, with respect to the contention that there is interference with the jurisdiction of the federal court, to a state statute of limitation. No one would doubt that such statute would apply to an action which reached the federal court by reason of diversity of citizenship. It would not be considered as impairing the right of access to that court.
Defendant relies upon such eases as Harrison v. St. L. & San Francisco R. R., supra, which involve statutes declaring' forfeited a permit issued to a foreign corporation to transact business in the state when it commences an action in or has one transferred to the federal court. (See cases collected 21 A. L. R. 188.) Those cases are manifestly distinguishable from the case at bar inasmuch as a direct penalty is established by the statutes involved therein which singles out and attaches only to the right of access to the federal courts. In the instant case the statute is equally applicable to all courts, and defendant is not prevented from having its constitutional rights protected in the federal courts. It is merely *690 obligated to pay the expenses incurred by its opponent in defending such a suit when it is unsuccessful; that is, when an invasion of its constitutional rights was incorrectly assumed by it as the basis for its action whether instituted in the state or federal courts.
It must be kept in mind that, generally speaking, the policy of .the Supreme Court of the United States is to look with disfavor upon attempted restrictions on the legislative authority and policy of a state. (See
Palmer
v.
Massachusetts,
Another phase of this same question is manifested in the rule that, as to matters of costs in actions in the federal courts, the United States statutes when they cover the subject are controlling, and may not be regulated by state statutes which result in penalizing the free access to the federal courts in proper cases. In that connection defendant refers to the federal statutes on the subject of fees and costs in actions in the federal courts. (28 U. S. C. A. 571, 572.) Assuming that the subject of costs is wholly covered by the federal statutes, it does not follow that section 526b is a regulation or provision for costs contrary to those statutes. The essence of the matter is, as .we have seen, that that section creates an independent substantive right, and implies no attempt to regulate the practice and procedure in relation to costs in the federal courts. This is brought out in the case of People of Sioux County v. National Surety Co., supra, involving a state statute authorizing the recovery of attorney’s *691 fees by a successful plaintiff in an action on a surety bond. The action on the bond was in the federal court. The statute provided that the fees were to be allowed and taxed as costs; that is, the fees were to be allowed by the court hearing the action, rather than in an independent action. Nevertheless, the Supreme Court of the United States held the statute providing for counsel fees to be valid and enforceable, stating at page 241:
“In striking down so much of the judgment as allowed, an attorney’s fee the court below was persuaded that sec. 7811, which provides for an attorney’s fee, authorized it only as costs to be taxed in the state court. As costs in the federal courts are regulated exclusively by R. S. secs. 823 and 824, the court concluded that other costs, authorized only by a state statute, could not be included in the judgment.. See United States v. Sanborn,135 U. S. 271 , 282 [10 S. Ct. 812 ,34 L. Ed. 112 ]; The Baltimore, 8 Wall. (U. S.) 377, 388, et seq.; [19 L. Ed. 463 ]; compare Ex parte Peterson,253 U. S. 300 , 314-319 [40 S. Ct. 543 ,64 L. Ed. 919 ].
“Both in an earlier case, Globe Indemnity Co. v. SulphoSaline Bath Co.,299 Fed. 219 , certiorari denied266 U. S. 606 [45 S. Ct. 92 ,69 L. Ed. 464 ]; see also Spring Garden Insurance Co. v. Amusement Syndicate Co.,102 C. C. A. 29 [178 Fed. 519 ], and in a later case, Business Men’s Assurance Co. v. Campbell, 18 F. (2d) 223, the same court applied the Nebraska statute allowing the recovery of attorneys’ fees in suits upon insurance policies. When it was argued that no other costs can be taxed in a court of the United States than those authorized by federal statute, the Court of Appeals said in the latter case (p. 224) that the objection ‘applies only to ordinary costs, and not to allowances for attorneys’ services provided by state statutes.’ . . .
“That the statute directs the allowance, which is made to plaintiff, to be added to the judgment as costs are added does not make it costs in the ordinary sense of the traditional, arbitrary and small fees of court officers, attorneys’ docket fees and the like, allowed to counsel by R. S. secs. 823, 824.
“The present allowance, since it is not costs in the ordinary sense, is not within the field of costs legislation covered by R. S. secs. 823, 824. That the particular mode of enforcing the right provided by the state statute—i. e., by taxing the allowance as costs—is not available to the federal courts *692 under R. S. secs. 823, 824, does not preclude the recovery. Since the right exists, the federal courts may follow their own appropriate procedure for its enforcement by including the amount of the fee in the judgment.” (Emphasis added.)
The distinction between ordinary costs and the counsel fees involved in the action in the case at bar is emphasized in the case of
Henkel
v.
Chicago, etc. Ry.,
Defendant refers to cases holding that in actions on injunction bonds in the federal courts attorney’s fees should not be allowed even though the state law permitted such recovery.
(Bein
v.
Heath,
12 How. (U. S.) 168 [
The contention that the section in question lacks uniformity, grants special privileges and denies equal protection of the laws, is also without merit. None of those constitutional principles is violated if the classification of persons or things affected by the legislation is not arbitrary and is based upon some difference in the classes having a substantial relation to the purpose for which the legislation was designed.
(County of San Bernardino
v.
Way,
18 Cal. (2d) 647 [
Applying those rules to section 526b, it cannot be said that the classification provided by the Legislature was palpably wrong and had no reasonable basis. When a municipality or public agency such as plaintiff in the case at bar
*694
engages in the business of producing and distributing electricity, it necessarily comes into competition with any private utility distributing electricity in the same area; that competition may be partially or even totally destructive to the private utility’s business. The private utility is without legal redress based upon constitutional guaranties for the results of such competition; its constitutional rights have not been thereby invaded.
(Puget Sound etc. Co.
v.
Seattle,
“If the classification is otherwise reasonable, the mere fact that attorney’s fees are allowed to successful plaintiffs only, and not to successful defendants, does not render the statute repugnant to the ‘equal protection’, clause. This is not a discrimination between different citizens or classes of citizens, since members of any and every class may either sue or be sued. Actor and reus differ in their respective attitudes towards a litigation; the former has the burden of seeking the proper jurisdiction and bringing the proper parties before it, as well as the burden of proof upon the main issues; and these differences may be made the basis of distinctive treatment respecting the allowance of an attorney’s fee as a part of the costs.”
It is of interest to observe that the courts have practically uniformly held constitutional statutes requiring that insurance companies, under varying circumstances, pay attorney’s fees in successful actions to recover from them claims they have refused to pay, although plaintiff need not pay their fees if unsuccessful, the necessity of bringing the action being vexatious.
(Farmers’ etc. Ins. Co.
v.
Dobney,
Defendant relies particularly upon the case of
Black
v.
Hilliker,
‘‘ There is, however, nothing in the opinion in Gulf etc. Ry. Co. v. Ellis,165 U. S. 150 [17 Sup. Ct. 255 (41 L. Ed. 666 )], or in our own Builders’ Supply Depot v. O’Connor,150 Cal. 265 [119 Am. St. Rep. 193 (11 Ann. Cas. 712, 17 L. R. A. (N. S.) 909),88 Pac. 982 ], to suggest that attorneys’ fees may not be allowed a successful plaintiff in certain classes of cases, even though no such allowance be made to the defendant in the event that he prevails. The right to classify in this respect, as long as the classification is ‘based upon some difference bearing a reasonable and just relation to the act in respect to which the classification is attempted’ was conceded by the opinion in Gulf etc. Ry. Co. v. Ellis,165 U. S. 150 [17 Sup. Ct. 255 (41 L. Ed. 666 )] (see Atchison etc. R. R. Co. v. Matthews,174 U. S. 96 [19 Sup. Ct. 609 (43 L. Ed. 909 )]), and is recognized by all the authorities.”
*697 No useful purpose may be served by an analysis of all the cases relied upon by defendant. Cases considering the particular constitutional guarantees here in question must each be determined upon its particular circumstances.
The judgment is affirmed.
Gibson, C. J., Shenk, J., Curtis, J., Edmonds, J., Traynor, J., and Ward, J. pro tem., concurred.
Appellant’s petition for a rehearing was denied September 10, 1942.
