A US marine who tried to sue his own government for millions of dollars in compensation after being "engulfed in flames" by an exploding barbecue has had a ruling in his favour overturned on appeal.