Is household ammonia okay for plants?
Okay, he's not wrong, technically speaking. Practically speaking never ever fertilize your plants with ammonia.

The ammonia you spilled will be converted into nitrates eventually, so it's not like you spilled lead into your garden. On the other hand the populations of nitrifying bacteria take a fairly long time to adapt to a bounty like "a bunch" of household ammonia (their idea of a banquet beyond their wildest dreams is 2-4 ppm ammonia) but they will eventually eat it all.

(Fishkeepers should know about the nitrogen cycle, because you have to set up a complete yet tiny version of the real thing, which takes at least a week to establish)

So your plants will be fine... next year. This year they might have a little bit of trouble considering ammonia is a base and can burn plants directly or indirectly. Don't fertilize your plants with ammonia. They will probably die.