EU agrees to give Turkey €3 billion for refugees