A group of technology companies, including Facebook Inc., Google Inc. and Apple Inc., opposed the bill because of what it called an “unacceptable loophole that could enable the bulk collection of Internet users’ data.”