EU agrees on asylum reform