The International Criminal Court has been investigating the deadly crackdown that Mr. Duterte, who was detained in Manila on Tuesday, oversaw while in power.