Indeed, Mr. Gossett faced a barrage of hostile questions from the justices, and in June 2006 the court ruled against his client, 8 to 1. The ruling wiped out decisions in much of the nation -- notably from the federal appeals court in California -- that had favored immigrants.