The prosecutors claimed that the communications between Trump and Corcoran were in furtherance of a crime. You can argue about whether or not that was the case here, but that is a valid exception to the attorney-client privilege.
Beyond Hilarious Troll