The Spanish prime minister’s threats to block a Brexit deal this week over Madrid’s claims to Britain’s tiny territory of Gibraltar on the Spanish coast has raised questions of veto risks for the package.