Her emphasis on supporting democratically elected governments faced challenges as the Islamist militant Hamas captured a popular majority in Palestinian elections, and influential countries including Saudi Arabia and Egypt maintained authoritarian systems with U.S. support.