Bill Gates, the Microsoft co-founder and leftist billionaire who has spent years predicting that AI would free people from drudgery and speed cures for disease and climate change, published an essay Wednesday warning that without urgent government intervention, AI could cause more harm than good.