A prison officers' union considers taking legal action against an inmate cleared of trying to murder three guards at Frankland Prison in Durham.