Step 1: Understand what veto power means.
Veto power lets a member stop a resolution from passing even if every other member supports it.
Step 2: Recall who holds this power in the UN.
Only the Security Council has this special power, and within it, only the five permanent members - USA, Russia, UK, France and China - can use the veto. The ten non-permanent members and the General Assembly cannot use it.
Step 3: Eliminate the other options.
Non-permanent members, General Assembly members and ICJ judges all lack this authority, so the answer points to the P5 nations.
\[ \boxed{\text{Permanent members of the Security Council}} \]