South Carolina can recover about $54,000 of its $3.5 million costs for a lawsuit defending the state's voter identification law.