A Japanese court ruled Thursday that not allowing same-sex couples to marry and enjoy the same benefits as straight couples violates their fundamental right to have a family.