Court overturns a will written 119 years ago which stipulated that only male descendants could inherit.