TOKYO - Japan's parliament enacted a law on Friday that recognizes as legal parents married couples who have children through donated eggs and sperm.