Fortunately the 2nd Amendment exists.

And allows banning fully automatic weapons and licensing.

How do I legally own fully automatic weapons in the US, then?

The gov chooses to allow you too. However, since Heller, the Supreme Court has made clear, that is not a right.