U.S. president withdraws foreign troops and reportedly considers action on Iran two months before leaving office.