The North Carolina Supreme Court has thrown out longtime litigation over education funding in the state