A BBC investigation showed the challenge of protecting posted workers while upholding EU economic freedoms