President Donald Trump has attended oral arguments at the U.S. Supreme Court, marking a first for a sitting president.