A ruling by a Japanese high court says not allowing same-sex couples to marry is unconstitutional, since it violates their fundamental right to have a family.