European Union and Turkish officials reached an agreement Friday on how to deal with a flood of Syrian refugees.