US Supreme Court Judge, Sonia Sotomayor, who was on the panel of judges that upheld President Trump’s so-called Muslim travel ban , on Tuesday criticized her follow colleagues for setting aside comments against Muslims made by the then candidate Trump while deciding the case.

In a 5-4 ruling, the Supreme Court bench handed over President Trump one of his biggest victories since taking charge of the White House in January last year, by upholding his executive order that sought ban on travelling from five Muslim-majority countries from entering the United States.

The Supreme Court Chief Justice John Roberts, writing in the court’s opinion stated that the President had the authority to suspend the entry of people into the United States to protect the national interest.

But, in her scathing dissent, Judge Sotomayor said that the court’s majority accepted the government’s invitation to set aside comments by President Trump he made against the Muslims, a news report said.

Referring to his statement of calling for a total and complete shutdown of Muslims entering the United States, she said that “…this new window dressing cannot conceal an unassailable fact: the words of the President and his advisers create the strong perception that the Proclamation is contaminated by impermissible discriminatory animus against Islam and its followers.”

She explained that how President Trump pledged during his election campaign to ban Muslims, which the then enforced through an executive order following his assumption of office after a stunning victory against rival Democrat and former First Lady Hillary Clinton. Judge Sotomayor said that President Trump has never disavowed any of his prior statements about Islam.

His executive orders on the subject were challenged by the state of Hawaii and other states which said that the Trump’s anti-Muslim comments showed that his policy was rooted in an animus toward Muslim people.

Under the ban, nationals from five majority Muslim countries, Iran, Libya, Syria, Somalia and Yemen, cannot travel to the United States. Chad was among the original list of countries but was dropped in April.

In a statement issued after the verdict, President Trump declared the Supreme Court judgement a “profound vindication” and said he would continue to defend the “sovereignty, safety and security of the American people and fight for an immigration system that serves the national interest of the United States and its citizens”.

In its opinion, the Court wrote that the plaintiffs allege that the primary purpose of the Proclamation was “religious animus and that the President’s stated concerns about vetting protocols and national security were but pretexts for discriminating against Muslims”.