All gov investment is senior to common stock, so the $1B market cap assumes value of AIG after the government has been paid back.
Now, who the suckers are who believe that AIG common is worth anything, that is a completely different story. But it is not like US gov turned $180B into portion of $1B.