TOKYO - Japan's parliament enacted Thursday contentious legislation to criminalize the planning of serious crimes, which the government says will help thwart terrorism but opponents claim could lead to the suppression of civil liberties and excessive state surveillance.