The president ordered the firing last June as he first learned that the special counsel might be investigating whether he had obstructed justice.