full congressional authorization came in the 1964 gulf of tonkin resolution , which approved support of `` the determination of the president , as commander in chief , to take all necessary measures to repel any armed attack '' on u.s. troops in southeast asia .