idiom
play both sides
Meaning
to support opposing parties to gain advantage
Example
Some lobbyists are known to **play both sides** of the issue.