The leaders of Germany and the United Kingdom announced plans on Wednesday to draw up a treaty meant to deepen the two nations’ trade, defense and other ties.