The San Francisco U.S. Attorney’s Office seemed ready for a nasty fight this summer when it argued it was allowed to listen to tapes of jailhouse conversations between a defendant and his lawyer — and then blamed the lawyer for exposing his client’s communications to government snooping.

In response, the defense bar rallied around its colleague Ian Loveseth with amicus curiae briefs, and the ACLU also got involved in the fight.