The former Trump official warned that Mamdani’s election shows the growing strength of the Democratic party’s populist wing