Shrewsbury and Telford NHS trust received almost £1m despite an inquiry into preventable baby deaths.