North Carolina court blocks state law that took away governo