The Palestinian Authority and militant group Hamas both welcomed the International Criminal Court's arrests warrants for Israeli Prime Minister Benjamin Netanyahu and his former defence minister over the Gaza war.