There was, in hindsight, a clear element of risk to Tesla Motors Inc.’s decision to install Autopilot hardware in every car coming off the production line since October 2014. It paid a price, with federal regulators probing the deadly crash of a Model S while in driver-assist mode and critics slamming Tesla for rolling the technology out too soon.