Banking regulators are close to a $10 billion settlement with 14 banks that would end the government’s efforts to hold lenders responsible for foreclosure abuses like faulty paperwork and excessive fees that may have led to evictions, according to people with knowledge of the discussions.