Завтра я обедаю с ним - to express future is fine.
Через два дня я обедал с ним - can be used to describe sequence of the events in the past, which could imply a future action during the narrative.
Example:
It happened unexpectedly. I met him first at the port where he worked. I had dinner with him two days later. -
Это случилось неожиданно. Сначала я встретил его в порту, где он работал. Через два дня я обедал с ним.