Japan enacts law against monopoly by Apple, Google