Court: Gay partners have right to inheritance