Federal prosecutors said at the trial of suspected MS-13 members in Los Angeles that a series of ritualistic machete murders were linked to the gang’s local leaders adopting a brutal code of conduct that required aspiring members to kill in order to prove their loyalty.