WASHINGTON (AP) — President Donald Trump on Wednesday slammed the court that is deliberating his immigration and refugee executive order for having motivations he described as “so political.”

Speaking to a group of police chiefs and sheriffs, Trump homed in on the language used in a law detailing presidential powers to limit “inadmissible aliens.”

The provision states that when a president finds that the entry of foreigners may be detrimental to U.S. interests, the president may “suspend the entry of all aliens or any class of aliens as immigrants or nonimmigrants, or impose on the entry of aliens any restrictions he may deem to be appropriate.”

“It was written beautifully,” Trump told the attendees, asserting that even “a bad high school student would understand this.”

“Courts seem to be so political and it would be so great for our justice system if they would be able to read a statement and do what’s right,” he added. “And that has to do with the security of our country, which is so important.”

The 9th U.S. Circuit Court of Appeals is weighing the appeal of Trump’s executive order on immigration, which temporarily suspends the country’s refugee program and bans travel for citizens of seven Muslim-majority countries. In a hearing Tuesday, judges on the appeals court challenged the administration’s claim that the ban was motivated by terrorism fears, but also questioned an attorney’s argument that it unconstitutionally targeted Muslims.

Hundreds of members of the Major Cities Chiefs Association and Major County Sheriff’s Association were in the standing room crowd, some in uniform but the majority in plain clothes.

They snapped photos with their phones as the president spoke, but clapped sparingly when he asked whether they were in agreement with his views on the immigration ban. His comments about combatting drug abuse and the targeting of police officers drew a more enthusiastic response from the crowd.

Trump, in his remarks, sought to link his comments about the court battle over his executive order to the law enforcement community in attendance.

“We have to allow you to do your job,” he said. “And we have to give you the weapons that you need, and this is a weapon that you need and they’re trying to take it away from you.”

Trump later tweeted that there has been a “big increase in traffic into our country from certain areas, while our people are far more vulnerable.”

Customs and Border Protection officials have declined multiple requests to detail how many visa holders from the seven designated countries have been allowed into the United States since a federal judge temporarily blocked the government from implementing Trump’s travel ban.

The State Department previously said fewer than 60,000 visas were provisionally revoked after the order was signed and those people would now be allowed to travel to the U.S.

By Tuesday afternoon, 178 refugees had arrived in the U.S, according to the State Department.

Trump also reiterated his vow to reduce violence in Chicago Wednesday, saying that “no one in America should be punished” because of their birthplace. He pledged to provide resources to police departments and promised “zero tolerance” for violence against law enforcement.

Trump also promised to work on combating drug abuse and said there should be resources to deal with a “mental health crisis.”

(Copyright (c) 2024 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox