Citizens who vote a certain just because a rav or rebbe said so are, in effect, robots. On the other hand, In R.U.R. the robots took over (ÄŒapek also wrote War with the Newts sometimes translated as War with the Salamanders about animals taking over). However, if a golem cannot be counted in a minyan (Resonsa Chacham Tzvi 93) then I would say that a robot also cannot.
As for trying him for a crime, why should he be any different than someone’s animal who damages? BTW, there are now moves in several countries to give animals legal standing, subject them to anti-slavery laws, etc.