SABMiller has secured a temporary court injunction to block Diageo subsidiary East African Breweries Ltd from buying a stake in a rival brewer in Tanzania.