On the Republican side , donors in the District and Virginia favored Arizona Sen. John McCain over former Massachusetts governor Mitt Romney , and Maryland residents raised the most money for former New York mayor Rudolph W. Giuliani , who dropped out of the race last week .