An Egyptian court has ruled that Hamas is a terrorist organization, according to an Egyptian state-run media organization.