The rapper’s children and their mother, Rihanna, looked on as a three-week trial highlighted a feud with an old friend.