He’s not evil, just naive and strongly deluded in thinking he can convince Obama to back off from the mandate.
He knows he can’t change Obama’s mind. What he can do, though, is thank Obama for attending the dinner, thereby supporting the lawsuit against the mandate.