There was no labour law at the time. Destroying the machines was a way to gain leverage, nothing more.
Ultimately the capitalists won that conflict. Many Luddites were murdered or jailed. And the history that was written tried to tell us that the Luddites were backwards peasants who didn’t understand technology and progress.