The Amash amendment failed by 16 votes (201 to 217).
Edit: Final tally is 205-217.
Edit: Final tally is 205-217.
Here's why: opponents of Amash wielded an argument that "split the vote". Representatives who voted against Amash could have done so for one of two reasons:
(1) They actively support providing the NSA with unchecked access to cell phone metadata under the "business records" provision of PATRIOT, or
(2) They don't support that access, but can't support a broad amendment that potentially de-funds whole NSA programs, and instead need something finer grained to correct NSA with.
Meanwhile, everyone who supported Amash believes strongly --- so strongly that they're willing to do something disruptive to NSA --- that new checks on NSA are needed.
I think this was a pretty hopeful vote.