After years of lamenting the factory sector’s diminishing role in the American economy, many American firms are counting on the domestic energy boom, rising overseas labor costs and stronger domestic demand to revive the long-stagnating manufacturing sector.