This is a law written by the legislative branch of government?

Laws in the United States begin as bills proposed to House Representatives from everyday people. The Representative then has the decision on wether to carry it into the legislative brach or not. The same bill is given to both the Senate and the House, then edited to suit both their likings. While this may or may not be entirely accurate, it is a basic description.