Rajya Sabha has passed a bill to grant greater autonomy to 12 major ports.