The law made selling dildos illegal. Apparently owning them was OK. Cruz was defending the right of the Texas legislature to ban the sale of dildos.
Vibrators can have non-sexual uses. They can be used a cheap, battery powered substitute for physical therapists like sirs.