Compensation to be paid for revoking licence after referee's sexual identity was leaked to the press.