Employers already have the legal right to do this
You know the thing about medical headlines where it turns out you can broadly tack “in mice” on the end to get a truer version? For statements like this you can usually add “in the US” and come away a little wiser. This is absolutely not the case everywhere else.