Congress shall not...
Means that all levels of government shall not, howerver:
...shall not be infringed.
Means shall not be infringed by Congress, but may be infringed by all other levels of government (especially the judicial).
Subsequent to the 14th amendment, some (not all) of the rights contained in the BOR were protected from state infringement also. The second amendment isn't one of them.