A Wisconsin Judge on Friday struck down a state law passed last year that ended most collective-bargaining rights for many public-employee unions, saying the law violates constitutional rights of freedom of speech and equal protection.

A spokesman for Republican Gov. Scott Walker, who introduced the law as his signature initiative one week after taking office in January 2011, said he was confident the decision would be overturned.

The...