President Donald Trump’s campaign and post-election statements dominated arguments Wednesday as the U.S. Supreme Court wrestled with the president’s power to impose a travel ban on foreign nationals from predominantly Muslim countries.

The justices heard arguments in Trump v. Hawaii before a full courtroom that included some of their spouses as well as White House Counsel Donald McGahn and U.S. Sen. Orrin Hatch, R-Utah.