Despite some high-profile setbacks, President Trump had a largely successful year at the Supreme Court, a former Justice Department civil litigation expert said, pointing to major victories for the White House on executive power and immigration enforcement.