The US president said the attack ‘unified’ political opponents and the press attending the event at a Washington hotel.