ISLAMABAD — Pakistan's senate has passed a resolution condemning an anti-Islam cartoon contest planned by a far-right Dutch lawmaker, in one of the first actions taken by the assembly since last month's elections.

In his first address to the senate since being sworn in, Prime Minister Imran Khan vowed to take the matter to the United Nations, saying that few in the West understand the pain caused to Muslims by such activities.

Geert Wilders, a Dutch lawmaker known for his fierce criticism of Islam, plans to hold a Prophet Muhammad cartoon contest later this year. Physical depictions of God or the Prophet Muhammad, even positive ones, are forbidden in Islam.

Pakistan summoned the Dutch ambassador earlier this month in protest. The Dutch government has distanced itself from the event.