Two bipartisan bills to protect the data of all Americans were blocked by Senator Ted Cruz, who argued it may affect law enforcement efforts to track down criminals.