Honolulu police officers have urged lawmakers to keep an exemption in state law that allows undercover officers to have sex with prostitutes during investigations, touching off a heated debate.