Leftist Gabriel Boric was elected president of Chile on Sunday, vowing higher taxes, greener industries and greater equality, after tapping into discontent over an investor-friendly economy that has left many behind.