The five-hospital nonprofit will receive an $800 million investment from the academic health system under the terms of their deal, which now has a definitive agreement in hand.