Bayer has agreed to thousands of legal settlements over Monsanto's weed killer Roundup after a federal judge raised questions about a deal pegged at up to $10.9 billion that had failed to resolve all the litigation, according to a court filing Thursday.