UNC Health Rockingham received a $40 million investment through a state initiative aimed at stabilizing rural hospitals.