With new treatments for disease, test suites that safeguard computers, and even expertise to rescue miners trapped thousands of feet underground, federal laboratories have a wealth of technologies and know-how that can give US companies a competitive edge and improve quality of life.