Shipping crackdown to avoid port 'anarchy'