Developers of self-driving car technology are using smaller and cheaper sensors to drive down prices, and car companies like Nissan Motor Co. are lining up to buy, with plans to deploy “driverless” cars in the next decade. But lobbying for legislation to allow such technology on the road could take longer.