US President Barack Obama refused to rule out US action in Iraq against Sunni Islamist militants who have surged out of the north to threaten Baghdad, threatening to divide the country and establish their own jihadist state.