As always, it's good to actually read the article. No surprise the headline isn't neccesarily the best summary of the results:
"In teams that were already well-structured, either because some employees were placed in positions of authority or because some employees had more advanced skill sets, performance dipped when leaders played favorites. In less clearly structured teams, however, having a biased boss typically led to better outcomes, with improved coordination and performance across the entire team."