In a setback for LGBT rights, a gay man has lost a landmark appeal to have the same pension rights as straight couples