High court gives go-ahead for challenge after law change allowing agency workers to cover teachers on strike