The chief prosecutor has obtained warrants against Israeli leaders for war crimes—but faces allegations of sexual misconduct.