State strikes deal with schools, says they can reopen if vac