The California legless lizard is just one example of many species of legless lizards. They are true lizards.
Here is the interesting part: A legless lizard evolved from a certain type of lizard. A snake evolved from a now-extinct 4-legged lizard. They are not closely related to each other, even though they look about the same.