Ranieri wins appeal against ban