An Internal Revenue Service analyst in San Francisco was the source of government records showing that Michael Cohen, when he was President Trump’s personal lawyer, funneled millions of dollars from foreign companies, as well as an alleged hush-money payment, into Cohen’s illegal shell company, federal prosecutors charged Thursday.