GOP lawmakers voted for it over the objections of Democrats who said it will suppress voting, particularly by the young and minorities.