Twin Cities hospitals, workers reach three-year deal