Oh, and let me add- the firearm purchase was not designed to regulate commerce— it was a national defense matter.
The draft was constitutional, right? Hard to think of a bigger mandate than that. It's basically slavery to the military. This firearm issue would seem to be analogous to the draft, but far less burdensome.