You can't draw a line between the teachings of religion and the beliefs lawmakers hold. We are a collection of everything we have learned.
There are some trolls here that want to paint people as robots, able to be programmed to only think in logical terms and create laws that have some numerically optimal outcome. That's naive at best, dishonest at worst.
If I believe "Murder is against God's law," does than mean we can't make murder illegal by statute? If we make murder illegal, we are agreeing with the religious teaching. Why are we so sensitized to reject religion, when it appears lack of religious morals is doing much more harm to society than a "secular" approach to controlling society.
You can't make a law for everything. People need a foundation built on the knowledge of what's right and wrong. All these "gray area" thinkers blur those lines, making it impossible for anyone to judge for themselves if something is wrong. No one can learn and understand the existing laws and ordinances at the city, county, state and federal level. That's why they say most people have broken at least three laws before they ever get to their jobs in the morning.
The golden rule is a good guideline: treat others the way you'd want them to treat you. That doesn't go into this or that situation. It's a guideline that makes life in society better than living for oneself. Why is that a bad thing to try and "influence" lawmakers to keep in mind?
Difference is some people desire the best and emotionless robotic laws are the most fair. Emotions tend to ruin everything and are NOT logical (in the scientific way).
We can make a law against murder simply because it causes a major negative effect on our nation and its people. It does not need a magic man in the sky to say its morally wrong.
You can make a law for everything or at least a guideline taught in school and in the home. Religion does not have to be the basis its why atheists and agnostics can exist.
I agree with your golden rule and add that I think humans should leave the world a better place than when they came.
Who said I'm religious? That's ONE MORE FALSE ASSUMPTION to add to your ever-growing list!

You have said you are a christian before, or believed in god.
Had the lawmakers not given into the temptation of power and greed, many bad decisions would have been averted.
Instead, the mentality of raising taxes to give jobs to unions that elect certain politicians is never wrong, because "everyone does it -- why should I be left off the gravy train?"
Maybe a little more religion and a little less rationalizing in the realm of "gray area" isn't a bad thing.
Its why we need computer programs to make some laws and enforce some rulings. Or at minimum a mixture. Machines don't get swayed by money, they don't get confused by emotions, they would look at the facts and make laws and rulings. Nothing more and nothing less. Pure logical bliss. But until that technology exists we need to stop making politics lucrative.