TOKYO - Japan's parliament on Friday enacted legislation to promote understanding of sexual minorities after a period of intense debate between the ruling and opposition parties in the run-up to the closing of the regular Diet session next week.