TORONTO -- Thousands of high school students kept from class for weeks by teacher strikes are set to return to school Wednesday after the Ontario Labour Relations Board ruled the job actions illegal.

The ruling came Tuesday evening, as the Ontario legislature began debate that was set to last until midnight on back-to-work legislation for the striking teachers.

Education Minister Liz Sandals said government lawyers were combing through the labour board ruling to determine its impact on the back-to-work legislation, but in the meantime the Liberal government would continue to try to get it passed quickly. A vote is expected on Thursday.

But school boards in the Toronto-area regions of Durham and Peel wasted little time in publicly announcing they would reopen schools Wednesday. There was no immediate word from the Sudbury-area Rainbow District School Board.

The labour relations board ordered an immediate two-week moratorium on the strikes to give the Ontario Secondary School Teachers' Federation an opportunity to "cleanse" the local strikes of central issues.

The labour board ruling does not permanently prohibit local strikes, whereas the back-to-work legislation would mean teachers in those boards can't strike for the rest of the school year, even if a central, provincewide strike is staged.

Labour board chair Bernard Fishbein sided with the school boards in concluding the three local strikes were, at least in part, on the central issue of class sizes. There was no "smoking gun," he wrote, but from the evidence he heard class size was "certainly" an issue on the picket line.

It would not have been enough for a "scintilla or a whiff of evidence" that the strike was about central issues, nor would a single picket sign about class sizes "fatally contaminate an otherwise proper, lawful, local strike," Fishbein wrote, saying this kind of decision will have to be on a case-by-case basis.

This is the first round of negotiations to formally separate local and central bargaining under legislation the Liberal government brought in last year.

Lawyers for the three school boards argued that although the law doesn't explicitly ban teachers from staging local strikes on provincial issues, that's what it was meant to do, and Fishbein agreed.

"If the (act) and its two-tier bargaining is to have any meaning, the parties must respect the central/local split (particularly when they themselves have agreed to it), and take some responsibility to ensure that the (act) is complied with," he wrote.

"I do not believe it too onerous a burden on trade unions that choose to engage in local strikes while central bargaining is ongoing, to say they should be vigilant in ensuring their local strikes cannot be construed as being 'in respect of central bargaining."'

Fishbein took the opportunity to write in his decision that he heard little to no evidence of communication between the local OSSTF units on strike and their members about what the local issues are.