ATHENS — Greek voters on Sunday gave a narrow victory in parliamentary elections to a party that had supported a bailout for the country’s failed economy. The vote was widely seen as a last chance for Greece to remain in the euro zone, and the results had an early rallying effect on world markets.