Egypt court rules Hamas armed wing ‘terror group’