Gifting firearms is still ok and legal.
The crux of this case it that it met the criteria for a straw purchase. The guy buying the weapon knew he was doing so for someone else, and money to effect the purchase was exchanged between the buyer and tge recipient.
The buyer then lied on the form in affirming that he was purchasing the gun for himself.
I see the SCOTUS verdict as tactical, not strategic (like the Heller win was).
Okay, Party A buys the gun for himself, drives home and decides, during the following week, to sell it to his next door neighbor. Now what?