U.S. states have reached a $25 billion deal with the nation’s biggest mortgage lenders over foreclosure abuses that occurred after the housing bubble burst. Maryland is in line for nearly $1 billion.