Diageo has secured a court injunction against picketers who forced the firm to suspend Guinness production at its St James's Gate brewery in Ireland, as part of a nationwide electricians' strike.