Google staff in Britain have voted to unionise in protest against the tech giant’s work with the Israeli and US militaries.