State attorney’s general are emerging as a new regulatory threat to the U.S. companies that dominate the internet.