Former US President Barack Obama returned to the national stage to boost his longtime democratic ally Kamala Harris in her presidential bid against Donald Trump.