Religious edict certainly helped a lot.
There were church mandated holidays in the Middle Ages. Lots of them.
The current pope chose his name to signal his continuation of Pope Leo XVIII's teachings on worker's rights, particularly the papal encylical Rerum Novarum: https://en.wikipedia.org/wiki/Rerum_novarum
During the industrial revolution many people treated their workers better because of their religious belief - the Quaker industrialists of Britain are a prominent example.
Just off the top of my head examples.
Only replying to you since everyone else is making the same points.
I follow a religion with similar edicts (not Christian). I also understand the contributions made by Christianity in this area. But the fact of the matter is that religion was ultimately unable to force actual widespread change on the ground, especially not in secularized European states.
At the end of the day, the only true religion that industrialists and capitalists understand is money. Only unions were able to speak their language at a very large scale, and this is the language they ultimately had to listen to :)