John Setka resigns from the Labor party and withdraws legal appeal