The National Association of Realtors has reached a nationwide settlement that could change the way real estate agents are compensated.