"获得当权者的宠爱" can be translated into English as "win the favor of those in power" or "gain the favor of the authorities".
Both expressions convey the idea of earning the approval, support, or special treatment from those who hold power or authority.