A highly automated Texas factory was supposed to bring the manufacturing of Craftsman mechanics’ tools back to American shores. The $90 million project was doomed by equipment problems and slow production.