South Carolina will receive $23.5 million in federal funding to help replace 18 aging bridges across nine counties.