MADISON, Wis.  After nearly a month of angry demonstrations and procedural maneuvering in the State Capitol here, Gov. Scott Walker won his battle on Thursday to cut bargaining rights for most government workers in Wisconsin.

But his victory, after the State Assembly passed the bill, also carries risks for the state’s Republicans who swept into power last November.

Democratic-leaning voters appeared energized by the battle over collective bargaining on a national stage. The fight has already spurred a list of potential recall elections for state lawmakers this spring. Protesters are planning more large demonstrations this weekend.

“From a policy perspective, this is terrible,” said Mike Tate, the leader of the Democratic Party of Wisconsin.