Judge rules South Carolina Ports can continue using nonunion