Zohran Mamdani has garnered the support of major Democratic figures, including former US president Barack Obama.