The threat to Sydney's new Years Eve fireworks has been averted, after a deal was struck between the state government and the transport union.