President Trump has been pushing for the legislation claiming it is needed to prevent cheating in elections.