Play footsie with (someone)

To engage in some kind of collaboration in a political situation.

The opposition party was playing footsie with the government in order to try and influence their policy.