Railway staff end protest after ‘back pay assurance’