After days of pressure from advocates — and facing the prospect of a lawsuit — Massachusetts lawmakers on Tuesday moved to reshape their proposed map of state legislative lines to carve out a new Brockton-based state Senate district where the majority of residents would be people of color.