Hospital to pay £29m after baby left brain damaged