A state Suprerior Court on Monday invalidated the Indiana right-to-work statute that requires unions to represent workers even if they choose not to pay union dues. Judge John Sedia ruled that the law runs counter to the Indiana constitution's ban on delivering services "without just compensation."

The statute, however, remains in effect while the state appeals the ruling to the Indiana Supreme Court.

The Indiana law became the model for a similar piece of legislation in Michigan, which proved just as controversial with union supporters and pro-labor activists.

When it enacted its right-to-work law on Feb. 1, 2012, Indiana became the 23rd state in the nation to pass such legislation. Michigan followed with legislation in December, becoming the 24th right-to-work state as the enabling statutes went into effect in March 2013.