CAIRO—Millions of Egyptians voted Wednesday in a historic and apparently orderly presidential poll that is expected to usher in the country's first freely elected civilian leader after six decades of military-backed dictatorship.

Voters waited in long lines outside...