Labor costs, driven by demand for contract workers amid staff shortages, were the hot topic in the hospital industry’s second-quarter earnings reports.