The Department of Justice reached a $9 million settlement Wednesday with Westerly, R.I.-based Washington Trust over race-based lending discrimination and redlining in the state, saying the bank denied lending services to Black and Hispanic neighborhoods from 2016 to 2021.