Idiocy aside, I note that the ruling says “When attached to a firearm”.
So, it is legal when not attached.
This is more of that idiotic stuff, like the ATF claiming that a wrist-brace for a pistol AR is legal, but the second you SHOULDER it, it becomes an SBR.