So he didn’t “lie”, he merely “ad libbed”.
All of the policy makers kept taking it out, knowing the statement would then become American policy. Reagan had thought it all out - much better than his cabinet, etc. Obama probably not so much. Just wants to be viewed as somehow relevant in world affairs and spouts off if he doesn't think he is getting enough attention.