This is the rule: Party X will defend unconstitutional electronic surveillance when the president is Party X. And it will attack unconstitutional electronic surveillance when the president is NOT(Party X).
The above rule holds true for both major parties.