Germany’s highest court dismissed complaints on Thursday from opponents of a trade deal between Canada and the European Union, a legal effort that had the potential not only to torpedo the pact but also to imperil for a proposed agreement between Europe and the United States.