Philosophy majors are being recruited by AI companies to help decide how machines should think and behave.