The ultimatum from the state government raises the risk of severe disruptions or a shutdown of Sydney’s passenger rail network if workers refuse to budge.