Social media companies paid a school district more than its annual budget to avoid trial