There is no federal US statute that says anything about legality or illegality of "preemptive" war. All that's needed for war to be "legal" is following Article One, Section Eight of the Constitution (practical details listed on the Wiki) and/or possibly War Powers resolution (as far as I know, the latter was never actually tested in front of Supreme Court, and many Presidents ignored it - see ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.