The NHS trust which runs Queen's and King George Hospitals has agreed a £28million settlement with the family of a girl who suffered brain damage.