With states seizing the initiative on shaping the future of self-driving cars, General Motors is trying to persuade legislators across the country to approve rules that would benefit the automaker while potentially keeping its competitors off the road.