AZ had this exact issue around 1916.
Republican was seated gov. Two years later the democrat was seated due to working its way through the court. Took over 18 months to work through.
https://en.wikipedia.org/wiki/1916_Arizona_gubernatorial_election