RMT responds to threatened legal action in ScotRail dispute