Westchester County agreed yesterday to create hundreds of affordable homes in heavily white communities and encourage nonwhites to move in.

The agreement, reached with the help of the U.S. Department of Housing and Urban Development, settles a $180 million lawsuit brought by the Anti-Discrimination Center of Metro New York against the county.