You might be able to use host integrity to check for the registry that blocks it and if not on the machine use a script attached to the policy to adjust it on the machine
https://www.raymond.cc/blog/restrict-or-disable-mouse-right-click-at-desktop-and-explorer/