Thanks for the ideas.
I'm wondering if this would work: I could get a long strap and run it in a loop across the table, fastening it underneath. If it's tight enough, the iMacs shouldn't move.
Here's a top-view mockup of the idea. I'm just not sure if it's the best solution, or if it will actually work.
View attachment 1943604