If you will notice, they mention the Miller decision of the SCOTUS as proof that military rifles are covered but handguns are not, therefore handguns can be banned.
It is in the full show. That is the ONLY All in the family episode I ever watched as I could not stand the program.