New legislation in Japan will require Apple to allow alternative browser engines on iPhones, potentially offering users more choice.