More companies are using artificial intelligence to interview and rank job candidates but the government's proposed mandatory rules could curtail the trend.