Many lawmakers, including some top Republicans, say the tactic is illegal.