The raid on Cohen’s office in TT was under Wray’s FBI. The devices were planted BEOFRE WRAY took over as Director.
This means that Wray’s team got the bugs from the TT to use as evidence!
That is why they are panicking! They know Wray has the bugs to use as evidence!