One of the biggest mortgage lenders in the U.S. said it would pay $1.75 billion to buy a well-known real-estate brokerage. The deal, once it goes through, could have major consequences for millions of home buyers.