The House of Representatives defied the White House yesterday by refusing to make an expiring surveillance law permanent , prompting a harsh exchange between Republicans and Democrats as they prepared for an extended , election-year battle over national security .