Legg Mason, one of the largest holders of Yahoo stock, will back the company's recommendations for its board of directors instead of those offered by dissident investor Carl Icahn.