Her decision to open Germany’s borders came only a few weeks after she had thrown her weight behind a new bailout agreement with Greece that imposed on the Greek people a pitiless schedule of debt repayments and led to an outpouring of anti-German sentiment in many parts of Europe.