A retired British man at the centre of a gay sex case in Uganda will be deported Wednesday, a court ruled.