A state education union leader said Sunday that union leaders are “exploring all avenues” — which could include legal action — after the state Senate mistakenly passed the wrong public employee pay raise bill Saturday.