The ride-sharing company Lyft has signed a deal with the large national health system CommonSpirit Health and a logistics company that manages emergency medical transportation in the escalating battle with rival Uber to tap the growing business of transporting patients to and from health facilities.