Until 2014, police in Hawaii were allowed to legally have sex with prostitutes as part of their investigations.