Barnsley is set to benefit from a £1.26m share of a national government funding package aimed at giving every child the best start in life.