Happy ending for courtroom drama