WASHINGTON -- The Senate overwhelmingly approved a measure to expand government spy powers, ending nearly two years of sometimes bitter clashes on Capitol Hill.

But the controversy will continue on the campaign trail. Democratic Sen. Barack Obama, who voted for the bill, is taking hits from liberals in his own party, as well as from his opponent, Republican Sen. John McCain.

Four...