Rape is illegal. Forced anal or vaginal exams without consent is rape.
Furthermore, when 2 or more people conspire to violate a constitutionally protected right (unreasonable search and seizure comes to mind) they are in criminal violation of 18 U.S.C. § 241 : US Code - Section 241 which states in part
(…) if such acts include kidnapping or an attempt to kidnap, aggravated sexual abuse or an attempt to commit aggravated sexual abuse, or an attempt to kill, they shall be fined under this title or imprisoned for any term of years or for life, or both, or may be sentenced to death.