Agency holds your pay because its client is unhappy
You work for the agency, not its client. The agency approved your work, passed it on, and now its client is unhappy, so the agency is holding your invoice. This separates your agreement from theirs.
Hi [agency contact],
Sorry to hear the client isn't happy. I'll help where I can.