President Donald Trump speaks at the Pentagon in Washington, D.C. (DOD Photo / Dominique A. Pineiro)

The U.S. Supreme Court sided with President Donald Trump in the legal battle over his authority to restrict immigration from several majority Muslim countries Tuesday.

The decision is a blow to progressive politicians — like Washington state Attorney General Bob Ferguson — and tech companies — like Amazon and Expedia — who fought and successfully blocked the first iteration of the travel ban.

The Supreme Court ruled on a later version of the ban in Trump v. Hawaii. The court upheld the ban 5-4, with Justices John Roberts, Anthony Kennedy, Samuel Alito, Clarence Thomas, and Neil Gorsuch in favor. The executive order that the court upheld temporarily restricts travel from Iran, Libya, North Korea, Somalia, Syria, Venezuela, and Yemen.

In December, the Supreme Court allowed the travel ban to go into effect while legal challenges played out in court. Lower courts repeatedly struck down the executive order, often citing comments Trump made on the campaign trail about banning Muslims from entering the country.

But the Supreme Court said, “The President has lawfully exercised the broad discretion granted to him … to suspend the entry of aliens into the United States,” in the ruling.

Read the Supreme Court’s full ruling here.

Like what you're reading? Subscribe to GeekWire's free newsletters to catch every headline

Job Listings on GeekWork

Find more jobs on GeekWork. Employers, post a job here.