Holiday ban on rail staff after strike threat