From Guns to Gavels: How Justice Grew Up in the Outlaw West