Trump tells dockworkers union facing expiring contract that ports shouldn’t install more automated systems