Greece narrowly avoided defaulting on its debt on Thursday, making a crucial payment to the European Central Bank after receiving billions of euros in new aid from other eurozone countries.