The free streaming site, which once had 35 million users, agreed to turn over its apps and intellectual property to a trade group representing the biggest record companies.