More than 40 years after the federal government enacted fair-housing legislation and the Great Migration of blacks from the South began to ebb, residential segregation in metropolitan America has been significantly curtailed, according to a study released Monday.