Ireland and Spain said Thursday they could stand on their own feet once their bailout programs end in the coming months, marking significant steps as the euro zone battles to exit a four-year debt crisis.

The currency union's finance ministers hailed the decisions as signs that their strategy of budget cuts, economic overhauls and long-term...