Since ideals are vector subspaces, it is enough to prove that in a vector space $V$ over an infinite field a vector subspace $I\subset P_1\cup\dots\cup P_n$ included in the union of finitely many vector subspaces $P_i$ is already included in one of them: $I\subset P_{i_0}$ for some $i_0$ .
If this were false, we would have $V_j:=I\cap P_j\subsetneq I $ for all $j$ and also $\cup V_j=I$.
But this is absurd : over an infinite field a vector space $I$ cannot be the union of finitely many strict subspaces $V_j$.