The tech giant’s landmark deal with states over teen use of social media may cost the company less than expected. It may hurt rivals more.