Michigan lifts barriers to Tesla sales, settling lawsuit