A judge has dismissed Gov. Nikki Haley and the state's former revenue director from a lawsuit over a massive security breach at South Carolina's tax collection agency.