Tech rivals join on NSA, immigration