The US president’s unannounced visit to troops in Iraq surprised, delighted and irked.