<p>The US president has been sending mixed messages after his party suffered a defeat at the midterm elections.</p>