The unintended consequences of this are pretty large. I just wouldn’t hire anyone who fit that law because of how onerous it is.
You get to hire and fire if the relationship doesn’t work, but if you’re still adamant on forcing a relocation then the risk is shared.