US president Barack Obama formally endorsed fellow Democrat Hillary Clinton for president yesterday, describing himself as eager to get out and campaign for her, days after she gained the delegates needed to secure the party’s White House nomination.