The group at the forefront of the fight against Ohio’s controversial collective bargaining law spent big on its campaign, shelling out $30 million to defeat the bill this fall.

We Are Ohio — a union-backed organization created to oppose the law after it passed in the spring — raised about $30 million and received another $12 million in in-kind contributions during the campaign, the Associated Press reported Friday.

The money was well spent. In the November election, voters rejected Republican Gov. John Kasich’s law curtailing public employees’ collective-bargaining rights. We Are Ohio had gathered 1.3 million signatures to put the issue on the November ballot, and more than 61 percent voted it down.

The group supporting the law, Building a Better Ohio, spent a little more than $11 million, the AP reported. The Republican-backed group had about $11 million in donations and $570,000 in in-kind contributions.

Correction: A headline on a previous version of this post referred to a Wisconsin anti-union law.