Representatives of six major technology and communications companies, including Google, Apple and AT&T, told lawmakers Wednesday that they support federal laws that would safeguard user privacy—if those laws aren’t as stringent as rules recently introduced in Europe and California.