Point to make: What Alabama is doing does not work to legalize gay marriage. In order to get married, people now have to go to a Preacher to get married. Not the Court House!
Now, if two gays find a Preacher to marry them........well, that can not be blamed on the State.
As for God punishing America, He will punish all peoples and Governments that do not obey Him. America included. But, He will NEVER forsake His children, so don't worry 'bout that.