Tesla Inc. raised prices on all its vehicles after CEO Elon Musk said costs were increasing at the companies he runs.