Police made deliberate decision to 'defeat rights' with use of undercover operatives in cells: appeal court judges