A judge has dismissed a lawsuit over a massive security breach at South Carolina's tax collection agency.