NYC settles suit by abused foster kids for $9.7M