European Parliament ratifies Brexit deal