The trial followed a half-decade investigation that has led to billions of dollars in fines, and it has rocked the reputations of some of the world’s biggest banks.