Tesla Motors Inc. notched a victory in the ongoing battle with states over dealership franchise laws.