They made a deal. Sonny will leave him alone if Justus does not use anything he knows about Sonny's business to prosecute him.
Sonny and Justus came to a mutually beneficial arrangement, where Sonny would cease to harass him in exchange for Justus refraining from using his knowledge of Sonny's business to prosecute him.