Lost appeal could cost GM billions