Housing and Urban Development Secretary Ben Carson faces a lawsuit over his agency’s sidelining of a rule that is meant to prevent segregation in areas that receive federal housing funds.