Despite challenges, the state's second-largest health system posted a $100 million operating gain last year for the first time in four years.