Unique ergodicity for foliations in $$\mathbb {P}^2$$P2 with an invariant curve