That's an interesting statute.
A political donation by a dreamer is a violation. Perhaps in-kind services or other non-monetary support for a candidate by a dreamer is a violation--depending whether in-kind is the same as a direct payment under this statute.
While I don't recall specific names or dates, I do recall adult dreamers, who conspicuously show their non-documented status, taking part in a televised debate in support of immigration reform. That might also be a violation.
What I don't understand is the public policy behind this statute in view of the fact that foreign nationals and foreign governments are free hire lobbyists and use other means to influence policy and legislation.