Senator Ben Nelson of Nebraska , a Democrat up for re-election who often breaks with his party , said he was willing to follow the lead of Senator John McCain , Republican of Arizona , who lent the final legislation his strong endorsement .