That much is very obvious.
... but I assume they said the second amendment applies to the states?
No. It said it applies as a protection for an Individual Right, regardless of which State or District they live in or whether or not they are in a "militia".
OUTSTANDING!!!
It doesn't appear that they said the second amendment applies to the states. What they DID say was, "In any event, the Supreme Court has unambiguously held that the Constitution and Bill of Rights are in effect in the District."
In other words, the second amendment applies to the District of Columbia. Which was all the court was concerned with.
That is the part he will have great trouble with, being the core of his arguments.