Mueller didn't raid Cohen's office. He referred the case to the Southern District of New York. The Southern District (after Geoffrey Berman, Interim US Attorney, recused himself) determined whether or not to pursue the case, and they decided to proceed with obtaining a warrant (which, of course, they legally did).