State pregnancy program getting $2.7 million