LUXEMBOURG—Eurozone nations agreed on the final elements of a plan to get Greece out of its eight-year bailout program and make its debt more manageable. The finance ministers of the 19 nations reached a surprisingly hard-fought compromise that had ...