A federal appeals court on Friday revived a lawsuit alleging that President Trump violated the Constitution by profiting from foreign and domestic officials who patronized his hotels and restaurants, adding to the corruption claims against Trump.