Bayer said Wednesday that it will pay up to $10.9 billion to settle litigation over the weedkiller Roundup, which has faced thousands of lawsuits over claims it causes cancer.