MADISON, Wis. (AP) — The Wisconsin Department of Public Instruction violated state law when it withheld voucher students’ standardized test scores for a day last fall, a judge ruled Friday.

School Choice Wisconsin and the Wisconsin Institute for Law and Liberty, a conservative law firm, sued the department in Jefferson County court in November. The lawsuit revolved around the 2018-19 standardized test scores that the department released that September.

The scores showed only 39% of all students were proficient or advanced in English and that 40% were proficient or advanced in math. Only 20.7% of voucher students were proficient or advanced in English and just 17.8% were proficient or advanced in math.

Students in voucher programs can use state dollars to subsidize tuition at private schools. Republicans have touted the programs as an alternative for students stuck in failing public schools. Democrats argue the programs are a drain on state revenues that could go to help public schools.

The lawsuit alleged that DPI released public school students’ scores on 2018-19 standardized tests to the media on Sept. 11 but didn’t release public and voucher students’ scores to the public until Sept. 12. They argued that state statutes require the department to release all scores simultaneously. They also contended that releasing part of the data early to the media exclusively prevented voucher advocates from commenting to reporters because the advocates didn’t have access to the statistics and didn’t know what they showed.

They went on to contend that the department lumped voucher scores into aggregate results without taking into account students’ grade levels and that three different voucher programs exist in Wisconsin, including one in Milwaukee, one in Racine and a statewide program. The lawsuit alleged that the move was designed to make voucher scores look worse when compared to public scores.

Agency officials countered at the time that the department released all the data on the same day but gave reporters the public school scores early so they would have more time to prepare stories.

Online court records indicate Judge Bennett Brantmeier agreed with the plaintiff groups in an oral ruling Friday morning. He issued an injunction permanently barring the department from providing anyone early access to test scores or from providing them in a piecemeal manner.

“The Court’s decision affirms that DPI violated state law by releasing partial school choice data to select members of the press,” WILL attorney Lucas Vebber said in a statement. “This decision ought to remind state agencies and unelected bureaucrats, once again, that they are accountable to state law.”

The department is reviewing the decision and is waiting for a written order from the judge, spokesman Chris Bucher said.