During his first day of testimony at Donald Trump’s criminal trial in New York, Michael Cohen walked prosecutors through his decade of service as Trump’s legal Mr. Fix It — a solver of problems often tangentially related to his professional title as lawyer.