Microsoft will pay $20 million to settle government charges that it collected personal information from children without their parents’ consent,…