Former Attorney General John Ashcroft is immune from a damages suit claiming he used the federal material witness statute in the aftermath of the Sept. 11 terrorist attacks as a pretext to detain terrorism suspects, the Supreme Court ruled on Tuesday.