EC261 compensation is always processed and paid by the airline, including when it's due to wrongful denied boarding.
However, will the airline pay from its own pocket, or will the handling agent whose staff denied boarding (if not belonging to the airline) be forced to pay the airline?