All franchises heretofore granted by any city for the exercise of any privilege in any State highway, are hereby fully validated, legalized and made effective, to the same extent that such city at the time of making the grant had power to grant a franchise authorizing the exercise of such privilege in, over and upon city streets.