Apple has settled a 2011 lawsuit concerning "in-app purchases" that allowed minors to spend hundreds of dollars without parental permission.