The Commonwealth has agreed to provide an additional $25 billion for public hospitals over the next five years.