The hospital REIT formally handed over the shuttered Carney Hospital and Nashoba Valley Medical Center to Apollo Global Management.