You don't give any information about where this is occurring, so there's no way for anybody here to verify ID requirements for a marriage license. But it's reasonable to infer that this is an ID requirement, not a visa verification requirement.
If the clerk finds out that his visa is expired, there is no reason I know of why she couldn't report that to the USCIS or ICE.

