Some bonuses were as much as $50,000 and were given out to educators by mistake, according to officials.