Resolution stemmed from fears that White House was stumbling into war with Islamic republic; Trump says Congress misunderstood presidential powers