Two political rivals have condemned the White House Correspondents’ Dinner attack in a moment of unity.