Euro zone finance ministers have agreed on a 8.5 billion euro loan to Greece, according to a euro zone official.