The Supreme Court ruled Monday in Trump v. United States that a former president has substantial immunity from prosecution for official acts committed while in office, but not for unofficial acts.