Used by more and more companies, artificial intelligence programs play a pivotal role in hiring, housing and medical decisions for millions of Americans.