John A. Koskinen became the nation’s top tax collector in 2013 to steady an agency rattled by political upheaval, but critics say he has obstructed justice and misled Congress.