Egyptian NHS doctor who ‘glorified’ Hamas spared deportation