Voters in El Salvador appeared to give Nayib Bukele a second term as president, but a troubled vote tally delayed results in an election that for many hinged on the tradeoff of curtailed civil liberties for security in a country once terrorized by gangs.