Trust to pay up to £23.7m over 2004 birth failings