Federal prosecutors have charged Donald Trump with violating the Espionage Act and conspiring to obstruct the criminal investigation among other counts, according to a person familiar with the matter, a historic development marking the most significant legal peril yet for the former president.