Ruling that Republicans in the State Senate had violated the state’s open meetings law, a judge in Wisconsin dealt a blow to them and to Gov. Scott Walker on Thursday by granting a permanent injunction that voided a law curbing collective bargaining rights for many state and local employees.

Judge Maryann Sumi of Dane County Circuit Court said the Senate vote on March 9, held after 14 Democratic senators had fled the state, failed to comply with the open meetings law, which requires at least two hours’ notice to the public.

The Wisconsin Supreme Court is scheduled to hear arguments in the case on June 6, and Republican lawmakers are hoping the court will overturn Judge Sumi’s ruling and reinstate the law.

The Senate could choose to pass the bill again while assuring proper notice. But some political experts said a new vote might meet numerous obstacles. Some Democrats could flee the state again, and some Republican senators are facing recall elections.