Marine unit ordered out of Afghanistan