A legislator, or lawmaker, is a person who writes and passes laws, especially someone who is a member of a legislature. Legislators are often elected by the people, but they can be appointed, or hereditary. From Wikipedia
Rep. Jahana Hayes voices regret over her support for the controversial immigration law, citing due process concerns and the Trump administration's treatment of immigrants.