The monthslong undercover investigation resulted in four indictments and guilty pleas from all defendants, exposing what prosecutors said was a hierarchy within the local crew.