A corrupt cop had a shock when he rocked up at a Michigan motel to swap drugs for sex and was busted in an undercover sting, police said.