The lawmaker who proposed the legislation mentioned President Donald Trump and accused him of trampling on people's constitutional rights.