An Israeli court extended Khalil Awawdeh's detention, days before his release.