Legality of pedal cars

Yes, but the vehicle regulations for an automobile are very different from those for a bicycle. As far as I can tell from the news articles, this vehicle met all the necessary requirements for a bicycle, and the attempt to treat it legally as an automobile failed.