There was almost no difference between government and religion when marriage originated, so it makes little sense to argue who invented it. Was Moses a political or religious leader? Were pharaohs political rulers or gods? Etc. What is very clear is that, in our society, civil and religious marriage are two different things that share a common name, and that one should have no influence over the other.