Trust to pay brain damaged girls family £21m