In ending the five-year fight to settle legal claims over foreclosure missteps after the 2008 credit crisis, Wells Fargo & Co. has agreed to pay a $70 million