The United States and the State of Missouri filed this enforcement action against the Metropolitan St. Louis Sewer District (District) under the Clean Water Act (Act), 33 U.S.C. § 1251 et seq. (2009). They seek federal civil penalties and injunctive relief to limit discharges of untreated wastewater and sewage by the District. The District raised several affirmative defenses *724 claiming financial inability to comply with the Act’s requirements and filed two counterclaims. The State then moved to strike the District’s affirmative defenses and to dismiss its counterclaims, arguing that they were barred by sovereign immunity and the Eleventh Amendment. The district court 1 denied the motion and Missouri appeals, arguing that it did not waive its sovereign immunity by filing this action since the Act requires its participation. We affirm.
The District is responsible for wastewater and stormwater management for approximately 1.4 million residential and commercial users in the St. Louis, Missouri area. On June 11, 2007, the United States and Missouri filed this enforcement action under federal law, alleging that from 2000 to 2005 the District allowed discharges of raw sewage from its sewer system in violation of the permits issued by the Missouri Department of Natural Resources. The complaint alleges that these discharges resulted from inadequate flow capacity in the collection system, poor maintenance, and improper connections between the sanitary sewer and stormwater systems.
Critical to this appeal is § 309(e) of the Clean Water Act, 33 U.S.C. § 1319(e), which states:
Whenever a municipality is a party to a civil action brought by the United States under this section, the State in which such municipality is located shall be joined as a party. Such State shall be liable for payment of any judgment, or any expenses incurred as a result of complying with any judgment, entered against the municipality in such action to the extent that the laws of that state prevent the municipality from raising revenues needed to comply with such judgment.
The District argues that the Missouri Constitution limits its authority as a political subdivision to levy taxes and otherwise raise the revenues that it would need to comply with any judgment in this case. See Mo. Const, art. X, §§ 16-24. In its first counterclaim the District alleges that Missouri must indemnify it under § 309(e) for the costs of complying with any adverse judgment. The District’s second counterclaim seeks essentially the same relief on equitable rather than statutory grounds.
The State moved to dismiss the District’s counterclaims and strike the related affirmative defenses, arguing that both were barred by its sovereign immunity. The State contends that it did not waive its immunity by joining the federal action because it was compelled to do so by § 309(e). It pointed out that it had not added any state law claims to the complaint. The district court concluded that the State had waived its sovereign immunity by initiating the action as one of the plaintiffs and denied the motion to dismiss. A district court’s decision denying sovereign immunity is immediately appealable,
see Murphy v. Arkansas,
The Eleventh Amendment
2
provides states with immunity from suit by private citizens in federal court seeking “retroactive relief for violations of federal
*725
law that would require payment of funds from a state treasury.”
Id.
The amendment does not automatically divest the federal court of original jurisdiction — a state must raise the defense.
Wisc. Dep’t of Corr. v. Schacht,
In
Lapides v. Board of Regents of University System of Georgia,
In addition to joining in the removal of a case to federal court, a state can also waive its immunity by filing a federal complaint,
Skelton,
Missouri contends that § 309(e) compels it to become a party by providing that it be joined in any action in which one of its municipalities is a party. Its decision to align as a plaintiff should therefore not be seen as a voluntary waiver of sovereign immunity. The State also argues that it has not taken any other litigation actions to date that affirmatively invoke the court’s jurisdiction. The parties do not cite, and we have not found, any other decision addressing the effect of § 309(e) on a state’s sovereign immunity. Section 309(e) holds the state liable if it is found that its laws impair the ability of a municipality to comply with the Clean Water Act, but it compels the state to become a party regardless of its potential liability and does not specify how a state should be aligned. In
United States v. Metropolitan St. Louis Sewer District,
We conclude that by choosing to proceed in this action as a plaintiff the State of Missouri waived its immunity. The filing of a complaint in a federal district court is the quintessential means of invoking its jurisdiction. There is no indication in the record that Missouri was reluctant to proceed as coplaintiff since it participated in filing the original complaint with the United States rather than being forcibly joined in the litigation at a later time. The com *726 plaint states that Missouri filed the enforcement action “at the request and on behalf of the Missouri Department of Natural Resources,” the state agency responsible for enforcement of state laws that implement the Act. The asserted interest in enforcement suggests that the State was not participating as a plaintiff solely to pay any judgment that might be entered under § 309(e) against the District. Moreover, the State has also participated in the development of a joint proposed scheduling plan for the litigants. That plan has allocated 50 interrogatories and 15 depositions to the State and preserved its ability to call expert witnesses if it chooses. This scheduling plan suggests that the State anticipates an active role as coplaintiff rather than passively waiting for the United States to seek indemnification from it under § 309(e).
Though Missouri did not add any state law claims to those brought by the United States, the fact is that it affirmatively joined in asserting the federal claims. As a result the State will be entitled to participate in negotiating and enforcing any judgment or consent decree entered against the District. Were the State to assert the defense of sovereign immunity against the District’s counterclaims while exercising the rights of a plaintiff, we would be condoning the selective invocation of immunity that the Supreme Court recognized as unfair in
Lapides. See also Skelton,
Section 309(e) undoubtedly compels a state to become a party in federal court, but it does not compel the state to take any action that would waive its sovereign immunity. A state required to join a federal enforcement action under § 309(e) can
preserve
its potential sovereign immunity defense by aligning as a defendant and taking no other actions inconsistent with the assertion of sovereign immunity. It is well established that defendants may take certain litigation actions such as filing a counterclaim or third party complaint and defending a suit on the merits without waiving sovereign immunity so long as that defense is asserted.
See Skelton,
Missouri asserts that requiring it to join as a defendant to preserve its sovereign immunity defense is inconsistent with the Eleventh Amendment’s purpose of preserving the dignity of states as sovereign entities.
See Fed. Mar. Comm’n v. S.C. State Ports Auth.,
Should the District prevail on its counterclaims, the financial impact on the State is unlikely to exceed its liability to the United States under § 309(e). The District’s counterclaims seek to hold the state liable for the costs of complying with any judgment entered in this case. They essentially mirror the language in § 309(e) *727 defining the scope of liability. The counterclaims also track the requirement in § 309(e) that Missouri is liable only if its laws are found to have prevented the District from raising sufficient funds for compliance. Compare 33 U.S.C. § 1319(e) with Def.’s Answer, Countercl. ¶¶ 13, 16. In sum, we agree with the district court that the State of Missouri waived its Eleventh Amendment immunity by filing an enforcement action alongside the United States in federal district court.
Accordingly, the district court’s order denying the motion of the State of Missouri to strike the District’s affirmative defenses and dismiss its counterclaims is affirmed.
Notes
. The Honorable Carol E. Jackson, Chief Judge, United States District Court for the Eastern District of Missouri.
. "The Judicial power of the United States shall not be construed to extend to any suit in law or equity, commenced or prosecuted against one of the United States by Citizens of another State, or by Citizens or Subjects of any Foreign State.” U.S. Const, amend. XI.
