Judge says S.Carolina Ports must vacate terminal