From the root ח־ק־ק (kh-q-q) in the pa'al binyan. Cognate to Arabic حَقَّ (ḥaqqa, “to be adequate, imperative or decreed”).
חָקַק • (khakák) (pa'al construction, passive counterpart נֶחְקַק)