ATHENS—Greek voters broke months of political stalemate by narrowly endorsing pro-bailout forces in a momentous election, easing fears of an imminent rupture with the euro zone—for the moment.

The result, giving the pro-austerity conservative and socialist parties enough votes to form a fragile and awkward ruling coalition, won't erase the immense problems that face Greece and the euro zone, both apart and together.

But...