After court injunction blocked planned teacher’s strike over new COVID quarantine rules, new agreement includes distributing tests to all education staff