Shares of industrial and transportation companies rose amid stronger-than-anticipated factory data and car sales.