Major industrial action which threatened to shut down Sydney’s rail network over the weekend has been called off after the state government and rail union successfully negotiated an impasse.