The solution that both the UK and the EU originally suggested is a non-regression clause, where both sides agree not to reduce standards below what is currently agreed. However, this type of agreement doesn't cover all possible deregulation events, it is weakly enforced, and it only addresses the current set of employment regulations, not anything that the EU may decide in the future.