The measure was passed by a vote of 74 to 25 after more than three hours of floor debate in the Senate. Both presidential candidates, Sens. Barack Obama, D-Illinois, and John McCain, R-Arizona, voted in favor.