There are waivers allowed from the executive branch and I believe Pakistan got one after 9/11 with some antiterrorism benchmarks (conditional aid).
As I understand it the US doesn't acknowledge Israel is nuclear armed and so doesn't give them a waiver congruent with the law.