Washington - 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 honed in on the language used in a provision detailing presidential powers to limit "inadmissible aliens."The provision states that when a president finds that the entry of foreigners may be detrimental to US interests, the president may "suspend the entry of all aliens or any class of aliens as immigrants or non-immigrants, 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 US 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.Clapped sparinglyHundreds 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 combating 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 also reiterated his vow to reduce violence in Chicago, 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."