A US federal appeals court has upheld former R&B superstar R Kelly's sex trafficking conviction and 30-year prison sentence.