GM deal clears way for end to US car strike