US president's State of the Union comment that Middle East conflicts "dated back millennia" met with online ridicule.