Teachers fight for millions in longevity pay