I guess it depends on what the defintion of "any", "is".
Here is a link to the opinion. You are exactly right that it depends on the meaning of "any". Many posters disagree with the conservative justices in this case, but to agree with the majority is to support legislation from the bench. The statute may or may not be poorly worded, but that does not give the Supremes carte blanche to depart from the plain meaning of words. "Any" means any. The statute does not say "...any federal or state court...", it says "any court". If conviction in these instances are not the desired legislative intent, then the statute needs to be changed.
http://a257.g.akamaitech.net/7/257/2422/26apr20050800/www.supremecourtus.gov/opinions/04pdf/03-750.pdf