Bayer AG and Johnson & Johnson agreed to settle more than 25,000 U.S. lawsuits over the companies’ blockbuster blood thinner Xarelto for a total of $775 million, court documents showed.