The US President has been left bruised after the Republicans were hammered by the Democrats in the midterm elections.