Ford and the United Auto Workers (UAW) union have reached a tentative deal to end a nearly six-week strike, which includes a record pay rise.