Philanthropy helped build artificial intelligence as a nonprofit research field. But as costs soar and corporations take over ...