R. Kelly’s appeal collapsed in court as judges upheld his sex trafficking convictions but flagged a costly error in a restitution award tied to herpes medication.