The intersting thing about Farmer vs. Higgens is that at first the Supremes accepted the case. Then after reading it, and seeing there was only one way they could rule (FOR Farmer and thus voiding the '86 FOPA machine gun ban) they said they would not hear it.
Farmer actually won the case the first time in court. It was the federal govt who appealed, and later won in a higher court.
At the time it was widely reported, and even repeated now, that the Supreme Court ruled that "the 2nd Amendment does not give a person the right to own a machine gun." But that is factually wrong on several points.
(1) Farmer was trying to MANUFACTURE a machine gun for which he needed certain paperwork from ATF. His suit said those permits would be "under the authority of the government". Farmer was not an individual wanting to own a machine gun.
(2) SCOTUS didn't rule. They refused to hear the case.