AI machines already have more rights than humans in the US. When did you last hear of an AI machine being deported from the US? When did you last hear of an AI machine being refused repairs when it developed a fault?
In the future AI machines will be programmed with the entire US Penal Code and will know more case law than any human being. The will be given powers to act as judge jury and executioner. An assault on an ATM will be met with instant destruction from built in machine guns and high intensity lasers.