Short answer: It really doesn't.
But if you can talk fast and convince magistrate judges to issue writs ex parte (no one is there to oppose you), you can get a lot of mileage out of writs that wouldn't survive an appeal. Most people won't have the time, money, or inclination to challenge them.
Even then, magistrate judges have been pushing back. The FBI's going to get slapped for this in the long run. But the long game here is that Comey was hoping public outrage against Apple would convince them to fold and play along with the writ, or nudge congress into giving it the powers it wants. The former clearly isn't working out, but the latter still may.
> The AWA seems to be a very small piece of law, and using it in the way it's being used seems against the spirit of it.
Bingo. It's also against established case law in the opinion of a very large number of people.
It's frustrating enough that code impact is completely unrelated to code size. I would rather our law not be the same way, but who am I to criticize.