EU agrees to offer protection to Ukraine refugees