Recent weeks have drawn sharp criticism of the president — not only from elected Democrats, but also from the chairwoman of the Federal Election Commission, who pointedly reminded followers on Twitter that it’s illegal to “solicit, accept or receive anything of value from a foreign national in connection with a U.S. election.”