Google will pay $7 million to settle complaints from dozens of U.S. states about its unauthorized collection of personal data transmitted over Wi-Fi networks.