With the rebuild entering a crucial phase, Detroit took a chance on a manager tarnished by Houston’s sign-stealing scandal.