When the new law takes effect on July 1, police officers will soon be writing tickets to self-driving cars that cause traffic violations.