play footsie with
play footsie with (someone)
mainly American
to be involved with a person or an organization secretly, because you know that other people will not approve.
The government never forgave him for playing footsie with the terrorists.
Cambridge English Idioms Dictionary