John McCain actually said...
If Pakistan's goals are attacking militants and extremists for the sake of their own stability and the benefit of the Pakistani people, then we can and should support their goals.
Context
Advocating for U.S. support of Pakistan's anti-terrorism efforts.
04/06/2009