Tesla Inc., whose boss Elon Musk says he can develop a fully self-driving car without using laser-sensor technology, has a contract to use such sensors from Luminar Technologies Inc. for testing and development, according to people familiar with the matter.