As of June 2024. libinput doesn't seem configurable enough to get it behaving like it does on Mac. Instead use Synaptics.
here is the config I am using:
xinput set-prop "Apple Inc. Magic Trackpad 2" "Coordinate Transformation Matrix" 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
xinput set-prop "Apple Inc. Magic Trackpad 2" "Device Accel Profile" 1
xinput set-prop "Apple Inc. Magic Trackpad 2" "Device Accel Constant Deceleration" 0.800000