The National Security Agency has admitting to improperly collecting what appears to be hundreds of millions of phone records from Americans, casting doubt that the principal restriction Congress imposed after Edward Snowden’s revelations has significantly inhibited the surveillance behemoth.