BERLIN—Greece initially agreed to consider an extension of its bailout program at a meeting of eurozone finance ministers on Wednesday before abruptly backtracking, dashing hopes of a quick resolution to the standoff between Athens and its creditors.