As companies turn to artificial intelligence for workforce decisions, experts warn of legal, ethical, and security risks employers can’t afford to ignore.