WASHINGTON (Reuters) - U.S. President Donald Trump defended his order to temporarily bar entry to people from seven majority-Muslim nations, which has come under intense criticism at home and abroad, saying on Thursday it was crucial to ensuring religious freedom and tolerance in America.

Trump, speaking at a prayer breakfast attended by politicians, faith leaders and guests including Jordan’s King Abdullah, said he wanted to prevent a “beachhead of intolerance” from spreading in the United States.

“The world is in trouble, but we’re going to straighten it out, OK? That’s what I do - I fix things,” Trump said in his speech.

Trump’s executive order a week ago put a 120-day halt on the U.S. refugee program, barred Syrian refugees indefinitely and imposed a 90-day suspension on people from seven predominantly Muslim countries - Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. The measure, which Trump says is aimed at protecting the country from terrorist attacks, has drawn protests and legal challenges.

Trump, a wealthy businessman and former reality TV star who had never previously held public office when he was sworn in on Jan. 20, also sought to reassure the large crowd about the nature of his phone calls with world leaders.

The Washington Post said Trump had a tense call with Australia’s Prime Minister about his immigration order.

“Believe me, when you hear about the tough phone calls I’m having - don’t worry about it. Just don’t worry about it,” Trump said. He did not specify which calls he was referring to.

Slideshow ( 3 images )

“We’re taken advantage of by every nation in the world virtually. It’s not going to happen anymore,” said Trump, who campaigned on a stance of “America first” that he said would ensure the country was not taken advantage of in its trade or other foreign relations.

Trump said violence against religious minorities must end. “All nations have a moral obligation to speak out against such violence. All nations have a duty to work together to confront it, and to confront it viciously, if we have to,” he said.

Trump said the United States has taken “necessary action” in recent days to protect religious liberty in the United States, referring to his immigration action.

Critics of the measure have accused him of violating the constitutional guarantee of religious freedom, because the designated countries are majority-Muslim, and of slamming the door shut to refugees.

Trump has said the move was necessary to ensure a more thorough vetting of people coming into the United States.

“Our nation has the most generous immigration system in the world. There are those who would exploit that generosity to undermine the values that we hold so dear,” Trump said.

Slideshow ( 3 images )

“There are those who would seek to enter our country for the purpose of spreading violence, or oppressing other people based upon their faith or their lifestyle - not right. We will not allow a beachhead of intolerance to spread in our nation,” he said.

Trump said his administration’s new system would ensure that people entering the United States embrace U.S. values including religious liberty.

He also pledged to get rid of the “Johnson Amendment,” a tax provision that prevents tax-exempt charities like churches from being involved in political campaigns.

The White House said on Wednesday it has issued updated guidance on the travel order clarifying that legal permanent residents, or green card holders, from the designated countries require no waiver to enter the United States.