Spanish reservations over Gibraltar on Friday prevented the European Union clearing the last hurdle before a summit that is due to endorse the bloc’s Brexit deal with Britain on Sunday.