US car giant agrees pay deal to end strike