Does anybody have an idea what might be wrong here?
This answer from Manjaro suggests adding the following line to
options psmouse synaptics_intertouch=0
This apparently forces the trackpad to use PS/2 emulation and makes everything all better. I haven't tested it extensively, but it seems to work in my T450s with Ubuntu 18.04.