German planes will operate from a base in the UK under a defence pact with Berlin being signed on Wednesday.