US president says war to last 'as long as necessary' as Washington sends mixed signals on timeline of war