Man I wish ever bill and law was under version control so you could do a git blame
Quite a few people are involved in that. Clerks, lobbyists, lawyers, etc.
Even the reading of the laws that lawmakers vote on is outsourced. (Ie lawmakers often don't read what they vote on.)
You can even have multiple protected branches where "policy makers" merge the work from their lawyer.