Virgin fights ruling that could stop it getting back into trains