The House on Wednesday passed legislation to ban the government from purchasing Americans’ private data from data brokers, which is considered a run around the Fourth Amendment.