Rail safety manager accused of serious misconduct after helping mate’s company win taxpayer-funded work