Child safety online is a critical legal and reputational risk for Apple and Alphabet, companies known for sustainability.