SAN FRANCISCO — After Dara Khosrowshahi took over as Uber’s chief executive last August, he considered shutting the company’s money-losing autonomous vehicle division. A visit to Pittsburgh this spring changed that.