Protesters gather for a rally at the State Capitol in Lansing, Mich., on Tuesday. (AP Photo/Paul Sancya)

The Michigan House of Representatives passed contentious "right to work" legislation Tuesday, clearing the way for Gov. Rick Snyder (R) to sign the bill, which effectively bars unions from requiring workers to pay labor dues.

The bill passed 58 to 51, largely along party lines. 

Unions are talking about recall campaigns against Republican state legislators and looking at ways the legislation could be repealed. (A spending measure was attached to bar a referendum overturning the legislation, but opponents say there are other ways to get it on the ballot.)