The action and reaction on the tow bar are forces which are internal to the system comprising truck+trailer. They therefore do not affect the motion of that system. The motion of the truck+trailer system is affected by forces acting on the system, not within the system,
The fact that the action and reaction between the truck and trailer are balance explains why the trailer does not slam into the truck.