Rapper accused of sex trade sentenced 17 years in prison with plea deal