A new federal program is dropping rural hospitals a lifeline to keep emergency services available as they struggle to turn a profit.