The Justice Department is expected to announce Wednesday a settlement with Bank of America Corp. that resolves accusations that its Countrywide Financial unit engaged in discriminatory mortgage-lending practices, according to a person familiar with the matter.