Apple Inc. is expanding tools for parents to protect children online, a move that comes as governments around the world increasingly ban social media for young people.