Within four days , the House and Senate overwhelmingly endorsed a resolution granting the president authority to go to war .