Decades-long lawsuit over lead paint settled