What is the version of the following sentence with correct punctuation?

Under EU law it was not up to the Irish authorities to judge whether Alan was a validly posted worker or not
Under EU law, it was not up to the Irish authorities to judge whether Alan was a validly posted worker or not.